Skip to content

Instantly share code, notes, and snippets.

@cn0047
Last active April 9, 2019 15:13
Show Gist options
  • Select an option

  • Save cn0047/2178d998a6a48eaca3f7728f3e32df7e to your computer and use it in GitHub Desktop.

Select an option

Save cn0047/2178d998a6a48eaca3f7728f3e32df7e to your computer and use it in GitHub Desktop.
AWS TaskDefinition JSON example
{
"containerDefinitions": [
{
"name": "$(YourServiceName)",
"image": "$(YourUserID).dkr.ecr.us-east-1.amazonaws.com/$(YourImage):$(YourTag)",
"portMappings": [
{
"protocol": "tcp",
"hostPort": 8080,
"containerPort": 8080
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/global-log",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "ecs"
}
}
}
],
"family": "$(YourName)",
"taskRoleArn": "$(YourARN)",
"networkMode": "awsvpc",
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512",
"executionRoleArn": "$(YourECSTaskExecutionRole)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment