Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

AWSAmazon ECSStatic Badge Static Badge

Welcome to your CDK Go project!

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

What does this task do?

  • Deploy ECS Fargate Cluster

✅ Useful commands

  • cdk deploy deploy this stack to your default AWS account/region
  • cdk destroy --force cleaning up stack

Setup Environment

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

✅ Deploying your cluster

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): repo


⬅ PreviousNext ➡🏠
Task Execution RoleCreating RDS instance