/terraform

Code to create things in AWS

Primary LanguageHCLGNU General Public License v3.0GPL-3.0

terraform

  • code to spin up ec2 instance in stockholm region (because of that extra core in t3.micro for free)

Steps to run

  1. Clone this repository
  2. Install terraform & cd ec2
  3. Run terraform init
  4. Run terraform plan -out ec2_plan
  5. Run terraform apply -auto-approve
  6. To terminate the instance run terraform destroy -auto-approve

References

  1. Terraform Best Practices for AWS users by ozbillwang

Roadmap

  1. Use datasources for getting AMIs instead of hardcoding(ec2/vars.tf/line_21)