The purpose of this deployment is to run an ECS Fargate cluster.
- The
cdk.json
file tells the CDK toolkit how to execute your app. - The
config.json
Contains the parameters to be initialized to deploy the task :
config.json :
ClusterName ECS Cluster name
- Deploy ECS Fargate Cluster
cdk deploy
deploy this stack to your default AWS account/regioncdk destroy --force
cleaning up stack
Run the following command to automatically install all the required modules based on the go.mod and go.sum files:
AWS_ECS_FARGATE_SONARQUBE:/ecs/> go mod download
Let’s deploy a cluster! When you’re ready, run cdk deploy
AWS_ECS_FARGATE_SONARQUBE:/ecs/> cdk deploy
Synthesis time: 3.14s
EcsStack02: start: Building fe4321cb799798100d1b63790f9c853a30ee671e2483c705023b4acefe06d9a5:103078382956-eu-central-1
EcsStack02: success: Built fe4321cb799798100d1b63790f9c853a30ee671e2483c705023b4acefe06d9a5:103078382956-eu-central-1
EcsStack02: start: Publishing fe4321cb799798100d1b63790f9c853a30ee671e2483c705023b4acefe06d9a5:103078382956-eu-central-1
EcsStack02: success: Published fe4321cb799798100d1b63790f9c853a30ee671e2483c705023b4acefe06d9a5:103078382956-eu-central-1
EcsStack02: deploying... [1/1]
EcsStack02: creating CloudFormation changeset...
✅ EcsStack02
✨ Deployment time: 16.84s
Stack ARN:
arn:aws:cloudformation:eu-central-1:xxxxxxx:stack/EcsStack02/d7a9a3e0-9862-11ee-83fa-064fc08bbe33
✨ Total time: 19.98s
On your AWS management console, you can now see your ECS Cluster (go in Elastic Container Service console):
⬅ Previous | Next ➡ | 🏠 |
Task Execution Role | Creating RDS instance |