- Dockerise wordpress app
- CI/CD pipeline using terraform in AWS
- Infrastructure creation for ecs fargate
- Use php-apache as base image
- Install dependencies and set workdir
- Copy wordpress application code and set permissions
- Start apache in foreground inside container as pid(1) process
Note: Application Dockerfile path : app/Dockerfile
Modules created to create pipeline are as follows
- Codecommit
- Codebuild
- Clouwatch-Events
Modules to create infra are as follows
- networking
- efs
- ecr
- rds
- secret-manager
- loadbalancer
- ecs
- VPC
- 3 public subnets spread across multiple az
- 3 private subnets spread across multiple az
- public route table with internet gateway
- elastic ip
- private route table with nat gateway
- efs
- efs security group
- mount point
- access point
- ecr registry
- db subnet group
- rds
- secret
- alb
- target group
- listeners
- taskdefination
- ecs cluster
- ecs service
- autoscaling in ecs service
- task role
- task execution role