forked from theonestack/hl-component-ecs-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecs-service.config.yaml
99 lines (97 loc) · 2.3 KB
/
ecs-service.config.yaml
1
2
3
4
5
6
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
component_version: 1
maximum_availability_zones: 5
log_retention: 7
# network_mode: awsvpc
#
# health_check_grace_period: 60
# scheduling_strategy: DAEMON
#
# cpu: 256
# memory: 256
# ephemeral_storage:
# SizeInGiB: 50
#
# volumes:
# - data-volume:/data
# NOTE: task_placement_constraint only suport Type="memberOf". Use distinct_instance_constraint: true for Type="distinctInstance"
# task_placement_constraints:
# - "attribute:ecs.availability-zone==ap-southeast-2a"
# distinct_instance_constraint: true
#
# placement_strategies:
# - Field: memory
# Type: binpack
# - Field: cpu
# Type: binpack
#
# task_definition:
# data:
# repo: some.custom.repo
# image: data
# memory: 128
# tag_param: DataTag
# NOTE: specify log_pattern (below) if you want to add an awslogs-multiline-pattern to the log driver, otherwise leave it out
# log_pattern: "^INFO"
# not_essential: true
# env_vars:
# KEY: value
# ulimits:
# - HardLimit: 65000
# Name: nofile
# SoftLimit: 65000
# api:
# repo: some.custom.repo
# image: api
# memory_hard: 128
# tag_param: ApiTag
# ports:
# - 8080
# env_vars:
# KEY: value
# entrypoint: ['/docker-entrypoint.sh']
# command: ['npm','start']
# mounts:
# - data-volume:/data:ro
# depends_on: #compatibility notice https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-dependson
# data: START # available status COMPLETE | HEALTHY | START | SUCCESS
# targetgroup:
# name: api
# container: api
# port: 8080
# protocol: http
# listener: http
# healthcheck:
# path: /status
# code: 200
# rules:
# - name: apiv2
# path: /v2/*
# host: api.*
# priority: 10
# - path: /api/v1/*
# host: app.*
# priority: 20
# tags:
# Name: api
#
# scaling_policy:
# min: 2
# max: 4
# up:
# cooldown: 150
# threshold: 70
# evaluation_periods: 5
# adjustment: 2
# down:
# cooldown: 600
# threshold: 70
# evaluation_periods: 5
# adjustment: -1
#
# iam_policies:
# ssm:
# action:
# - ssm:GetParameter
# - ssm:GetParameters
# - ssm:GetParametersByPath
# - ssm:DescribeParameters