Skip to content

Instantly share code, notes, and snippets.

@kuleszaj
Created April 18, 2017 01:56
Show Gist options
  • Save kuleszaj/fab822bb6f5dca3fa211876fc989a3bc to your computer and use it in GitHub Desktop.
Save kuleszaj/fab822bb6f5dca3fa211876fc989a3bc to your computer and use it in GitHub Desktop.
AWS ECS Register Task Definition JSON
{
"family": "my-ecs-task",
"placementConstraints": [],
"volumes": [
{
"host": {
"sourcePath": "/mnt/efs/dir1"
},
"name": "uploads"
},
{
"host": {
"sourcePath": "/mnt/efs/dir2"
},
"name": "processed"
}
],
"containerDefinitions": [
{
"environment": [
{
"name": "RACK_ENV",
"value": "production"
}
],
"name": "webapplication",
"workingDirectory": "/var/www/current/",
"mountPoints": [
{
"sourceVolume": "uploads",
"containerPath": "/var/www/current/uploads"
},
{
"sourceVolume": "processed",
"containerPath": "/var/www/current/processed"
}
],
"image": "accountnum.dkr.ecr.us-west-2.amazonaws.com/ecr-repo:latest",
"cpu": 10,
"portMappings": [
{
"protocol": "tcp",
"containerPort": 80,
"hostPort": 0
}
],
"entryPoint": [
"bundle",
"exec",
"rackup"
],
"memory": 10,
"essential": true,
"volumesFrom": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment