Skip to content

Instantly share code, notes, and snippets.

@d3ming
Created December 5, 2016 20:40
Show Gist options
  • Save d3ming/f01594b8d2ec53ef755528a2a01a408d to your computer and use it in GitHub Desktop.
Save d3ming/f01594b8d2ec53ef755528a2a01a408d to your computer and use it in GitHub Desktop.

Save on AWS cost!

Some notes from AWS REInvent

Low hanging fruits:

  • Kill dev/test instances regularly (elastic instances)
  • Re-evaluate instance type regularly
  • Use reserved instances

Further optimizations

  • Spot instances + autoscaling
  • Go serverless: Lambda + API gateway + DynamoDB
  • Use elasticache
  • S3 static web hosting
  • Use an appropriate DB
  • Don't use RDBMS as a blob store, use S3 instead
  • Autoscaling optimizations: Use 6x3 over 12x2

Deep dive on elastic instances

  • Manual shutdown
  • Tag instances and have a lambda function to shut down regularly
  • Datapipeline / cloudwatch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment