Infrastructure
Repository holding code to provision all infrastructure components needed, namely
- VPC
- DNS
- ALB
- ECR
- Jenkins
- Environment (ECS Cluster)
- Test ECS Service (Nginx as test service)
Pre-requisites
Before provisioning any code with terraform,
- Configure AWS credentials
- Create a S3 bucket & enable bucket versioning
$ aws s3 mb s3://bootcamp-2021-tf-state --region us-east-1
$ aws s3api put-bucket-versioning --bucket bootcamp-2021-tf-state --versioning-configuration Status=Enabled --region us-east-1
- Create a table in DynamoDB using script
$ aws dynamodb create-table --table-name bootcamp-2021-tf-lock-table \
--attribute-definitions AttributeName=LockID,AttributeType=S --key-schema AttributeName=LockID,KeyType=HASH \
--provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 --region us-east-1