Skip to content

Instantly share code, notes, and snippets.

View tomelliff's full-sized avatar

Tom Elliff-O'Shea tomelliff

View GitHub Profile

Keybase proof

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:

resource "aws_api_gateway_deployment" "instance" {
rest_api_id = "${var.rest_api_id}"
stage_name = "${var.stage_name}"
variables {
deployed_at = "${timestamp()}"
}
}
@tomelliff
tomelliff / AwsRegionsAndAzs.md
Created April 8, 2017 14:31
List of AWS availability zones for each AWS region
$ 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"
@tomelliff
tomelliff / Makefile
Created February 19, 2017 16:13
Basic Makefile for Terraform to deploy Lambda functions
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: