Skip to content

Instantly share code, notes, and snippets.

@MrMikeFloyd
Created May 23, 2022 07:55
Show Gist options
  • Save MrMikeFloyd/fe0c176bac7c11a60a2ed73f4293aba1 to your computer and use it in GitHub Desktop.
Save MrMikeFloyd/fe0c176bac7c11a60a2ed73f4293aba1 to your computer and use it in GitHub Desktop.
ECS task definition for automated CodeDeploy deployment. The execution role ARN needs to be replaced before checking this file into version control for the deployment to succeed. Find the most recent version here: https://github.com/codecentric/accelerate-kickstarter-aws/blob/main/cloud-bootstrap-app/taskdef-prod.json.template
{
"family": "cloud-bootstrap",
"executionRoleArn": "${TASK_EXEC_ROLE_ARN}",
"networkMode": "awsvpc",
"cpu": "1024",
"memory": "2048",
"requiresCompatibilities": [
"FARGATE"
],
"containerDefinitions": [
{
"name": "cloud-bootstrap",
"image": "<IMAGE_NAME>",
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "cc-cloud-bootstrap-prod",
"awslogs-region": "eu-central-1",
"awslogs-stream-prefix": "ecs"
}
},
"portMappings": [
{
"containerPort": 8080,
"protocol": "tcp"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment