task_definition_etcd_nats.json 3.39 KB
Newer Older
1
2
3
4
5
{
    "family": "Dynamo-tasks",
    "containerDefinitions": [
        {
            "name": "etcd",
6
            "image": "bitnamilegacy/etcd",
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
            "cpu": 0,
            "portMappings": [
                {
                    "name": "2379",
                    "containerPort": 2379,
                    "hostPort": 2379,
                    "protocol": "tcp",
                    "appProtocol": "http"
                },
                {
                    "name": "2380",
                    "containerPort": 2380,
                    "hostPort": 2380,
                    "protocol": "tcp",
                    "appProtocol": "http"
                }
            ],
            "essential": true,
            "environment": [
                {
                    "name": "ALLOW_NONE_AUTHENTICATION",
                    "value": "YES"
                }
            ],
            "environmentFiles": [],
            "mountPoints": [],
            "volumesFrom": [],
            "ulimits": [],
            "logConfiguration": {
                "logDriver": "awslogs",
                "options": {
                    "awslogs-group": "/ecs/Dynamo-tasks",
                    "mode": "non-blocking",
                    "awslogs-create-group": "true",
                    "max-buffer-size": "25m",
                    "awslogs-region": "us-east-2",
                    "awslogs-stream-prefix": "ecs"
                },
                "secretOptions": []
            },
            "systemControls": []
        },
        {
            "name": "nats",
            "image": "nats",
            "cpu": 0,
            "portMappings": [
                {
                    "name": "4222",
                    "containerPort": 4222,
                    "hostPort": 4222,
                    "protocol": "tcp"
                },
                {
                    "name": "6222",
                    "containerPort": 6222,
                    "hostPort": 6222,
                    "protocol": "tcp"
                },
                {
                    "name": "8222",
                    "containerPort": 8222,
                    "hostPort": 8222,
                    "protocol": "tcp"
                }
            ],
            "essential": true,
            "command": [
                "-js",
                "--trace"
            ],
            "environment": [],
            "environmentFiles": [],
            "mountPoints": [],
            "volumesFrom": [],
            "logConfiguration": {
                "logDriver": "awslogs",
                "options": {
                    "awslogs-group": "/ecs/Dynamo-tasks",
                    "mode": "non-blocking",
                    "awslogs-create-group": "true",
                    "max-buffer-size": "25m",
                    "awslogs-region": "us-east-2",
                    "awslogs-stream-prefix": "ecs"
                },
                "secretOptions": []
            },
            "systemControls": []
        }
    ],
    "taskRoleArn": "arn:aws:iam::AWS_ID:role/ecsTaskExecutionRole",
    "executionRoleArn": "arn:aws:iam::AWS_ID:role/ecsTaskExecutionRole",
    "networkMode": "awsvpc",
    "volumes": [],
    "placementConstraints": [],
    "requiresCompatibilities": [
        "FARGATE"
    ],
    "cpu": "1024",
    "memory": "3072",
    "runtimePlatform": {
        "cpuArchitecture": "X86_64",
        "operatingSystemFamily": "LINUX"
    },
    "enableFaultInjection": false
}