Sample of How to use Terraform managed Cloud Infrastructure as stack code
aws sts get-caller-identity
- Initilze Terraform AWS Provider
cd compute/ec2 && terraform init
- Show out EC2 resource when it want to build
cd compute/ec2 && terraform plan
- Approval to Create AWS EC2
cd compute/ec2 && terraform apply
- Initilze Terraform AWS Provider
cd developer-tools/codedeploy && terraform init
- Show out EC2 resource when it want to build
cd developer-tools/codedeploy && terraform plan
- Approval to Create AWS EC2
cd developer-tools/codedeploy && terraform apply