I hereby claim:
- I am tomelliff on github.
- I am tomelliff (https://keybase.io/tomelliff) on keybase.
- I have a public key whose fingerprint is B0AE D3C4 09F0 9E0F D46D 1BB2 3328 B56E 3A33 ACFC
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| resource "aws_api_gateway_deployment" "instance" { | |
| rest_api_id = "${var.rest_api_id}" | |
| stage_name = "${var.stage_name}" | |
| variables { | |
| deployed_at = "${timestamp()}" | |
| } | |
| } |
$ for region in `aws ec2 describe-regions --query 'Regions[*].RegionName' --output text`; do aws ec2 describe-availability-zones --query 'AvailabilityZones[*].ZoneName' --region ${region}; done
[
"ap-south-1a",
"ap-south-1b"
]
[
"eu-west-2a",
"eu-west-2b"| AWS_ACCOUNT_ID=`aws sts get-caller-identity --output text --query 'Account'` | |
| bootstrap: | |
| ifndef AWS_DEFAULT_REGION | |
| $(error AWS_DEFAULT_REGION is not set) | |
| endif | |
| region_constraints='--region $(AWS_DEFAULT_REGION) --create-bucket-configuration LocationConstraint=$(AWS_DEFAULT_REGION)'; \ | |
| aws s3api create-bucket --bucket tfstate-lambda-functions-$(AWS_ACCOUNT_ID) $${region_constraints} | |
| remote: |