- VPC
- Internet Gateway
- Public Subnet(with respective route tables)
- Nat Gateway
- Private Subnet
- Security Group
- A t3a.micro EC2 instance (with a small userdata script)
Resources folder contains the main file which creates the infrastructure.(Terraform should be applied in this folder)
- Using terraform to generate ssh keys is nota a secure option as the private key can be found in the terraform state file. It is suggested to create your own key outside of terraform and use it.
- State files ideally should be stored in s3 buckets. The code for such is commited but commented as the code was tested locally.