Terraform deployment for apache
Terraform deployment for apache auto-scaling group.
- VPC
- DynamoDB
- S3
- Security Group
- Auto Scaling Group
- Launch Template
- ALB
-
- Frist create an S3 bucket to store terraform status in S3 with DynamoDB
-
- Create the AWS VPC. This will create 2 Private AZs and 2 Public AZs in the provided region (Note: You have to provide your custom CIDRs for Public and Private Subnets)
-
- Create Security Groups for Public ALB and Private EC2 instance
-
- Create Launch Template
-
- Deploy an ALB in the public subnet
- 6.Create the auto-scaling group to scale up and down with the instance CPU utilization
-
- aws/accout_id/backend_s3_with_dynamodb/-> and terrafrom init-> terrafrom plan -> terrafrom apply
-
- aws/accout_id/vpc_create/ -> and terrafrom init-> terrafrom plan -> terrafrom apply | chage the backend.tf s3 state path | Provide WAS variable (ex.tags)
-
- sg_create -> and terrafrom init-> terrafrom plan -> terrafrom apply | chage the backend.tf s3 state path | Provide WAS variable (ex.tags)
-
- aws/accout_id/launch_template -> and terrafrom init-> terrafrom plan -> terrafrom apply | chage the backend.tf s3 state path | Provide WAS variable (ex.tags)
-
- aws/accout_idlb_for_asg -> and terrafrom init-> terrafrom plan -> terrafrom apply | chage the backend.tf s3 state path | Provide WAS variable (ex.tags)
-
- aws/accout_id/al-> and terrafrom init-> terrafrom plan -> terrafrom apply | chage the backend.tf s3 state path | Provide WAS variable (ex.tags)