AWS terraform destroy & terraform apply (Part 8) AWS terraform destroy & terraform apply (Part 8)

December 20, 2021

aws debian devops

This morning I got an alert from Amazon that said I was at 85% usage for storage on my free tier account. I thought this was odd, as I had been trying to stay within the free limits. Looking at the Instance console, it had a 50gb storage disk, which is higher than the 30gb allowed in the free tier. No problem.

A simple change of line 67 of the setup.tf file from 50gb to 29gb and then by running 2 commands, quickly, an instance is back up with a smaller disk!

terraform destroy

terraform apply

This is devops! Fast, accurate automation to solve problems and get up and running accurately.

On my journey learning and using the AWS Cloud, I have been looking at more of the offerings from Amazon.

  • AWS Elastic Beanstalk is an orchestration service offered from Amazon Web Services for deploying infrastructure which orchestrates various AWS services, including EC2, S3, Simple Notification Service, CloudWatch, autoscaling, and Elastic Load Balancers.
  • AWS Lambda is a serverless, event-driven compute service that lets you run code for virtually any type of application or backend service without provisioning or managing servers. You can trigger Lambda from over 200 AWS services and software as a service (SaaS) applications, and only pay for what you use.

Useful reading:

https://github.com/rennokki/laravel-aws-eb

https://github.com/mslobodyanyuk/aws-laravel_academind


If you would like to contact me you can either use this form on londinium.com or via Twitter @andylondon