Using Terraform to build AWS network infrastructure and deploy resources

1. Source Code https://github.com/nhatvo1502/Automate-IaC/tree/main 2. What the code does 2.1. create-resource.yml configure aws credential verify aws credential verify aws s3 permission create s3 bucket for terraform backend copy file from GH to runner verify terraform file terraform init -> apply 2.2 destroy-resource.yml configure aws credential copy file from GH to runner verify terraform file terraform init -> destroy empty s3 backend bucket delete-bucket 2.3 main.tf configure s3 as backend create an s3 bucket create a keypair using a public key from GitHub Secret AMI lookup create VPC create a subnet create a network interface create EC2 instance 3....

January 16, 2024 · 12 min · Nhat Vo