Skip to content

Instantly share code, notes, and snippets.

@wizact
Created July 29, 2018 05:04

Revisions

  1. wizact created this gist Jul 29, 2018.
    54 changes: 54 additions & 0 deletions ecs_task_def.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,54 @@
    {
    "containerDefinitions": [
    {
    "name": "datacontainer",
    "mountPoints": [
    {
    "sourceVolume": "volume-0",
    "readOnly": false,
    "containerPath": "/app/acmeinc-api/log/"
    }
    ],
    "image": "<aws_account_id>.dkr.ecr.us-east-1.amazonaws.com/acmeinc-api-datavolume:latest",
    "essential": false,
    "portMappings": [],
    "entryPoint": [],
    "memory": 512,
    "command": [],
    "cpu": 1,
    "volumesFrom": []
    },
    {
    "environment": [],
    "name": "acmeinc-api",
    "links": [],
    "mountPoints": [],
    "image": "<aws_account_id>.dkr.ecr.us-east-1.amazonaws.com/acmeinc-api:%s",
    "essential": true,
    "portMappings": [
    {
    "protocol": "tcp",
    "containerPort": 8080,
    "hostPort": 8080
    }
    ],
    "entryPoint": [],
    "memory": 512,
    "command": [],
    "cpu": 1,
    "volumesFrom": [
    {
    "sourceContainer": "datacontainer"
    }
    ]
    }
    ],
    "volumes": [
    {
    "host": {
    "sourcePath": "/app/acmeinc-api/log/"
    },
    "name": "volume-0"
    }
    ]
    }