-
Notifications
You must be signed in to change notification settings - Fork 3
/
shippable.resources.yml
127 lines (108 loc) · 3.07 KB
/
shippable.resources.yml
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
resources:
# resources for this shippableSamples demo
################################
# add env - AWS cluster
- name: shipdemo-cluster-ecs
type: cluster
integration: ttrahan-aws # replace with your AWS integration name
pointer:
# replace with your Amazon ECS cluster name and region
sourceName : "demo-shippable-ecs-test"
region: "us-east-1"
flags:
- amazon-ecr-ecs-loadbalancer
# add AWS ALB target group for TEST
- name: shipdemo-alb-test #required
type: loadBalancer #required
pointer:
# replace with the ARN for your Amazon EC/2 Application Load Balancer Target Group
sourceName: "arn:aws:elasticloadbalancing:us-east-1:288971733297:targetgroup/demoWebTest/56a74253de7101ee"
method: application
flags:
- amazon-ecr-ecs-loadbalancer
# add AWS ALB target group for PROD
- name: shipdemo-alb-prod #required
type: loadBalancer #required
pointer:
# replace with the ARN for your Amazon EC/2 Application Load Balancer Target Group
sourceName: "arn:aws:elasticloadbalancing:us-east-1:288971733297:targetgroup/demoWeb/29435cb0f31ac400"
method: application
flags:
- amazon-ecr-ecs-loadbalancer
################################
# Docker Image
- name: shipdemo-img-ecs
type: image
integration: ttrahan-ecr # replace with your Amazon ECR integration name
pointer:
# replace with your Amazon ECR URL
sourceName: "288971733297.dkr.ecr.us-east-1.amazonaws.com/node-ecr-deploy-ecs-loadbalancer"
isPull: false
seed:
versionName: master.1
flags:
- amazon-ecr-ecs-loadbalancer
################################
# TEST resources
# Docker Image Options
- name: shipdemo-img-options-ecs-test
type: dockerOptions
version:
memory: 64
cpuShares: 128
portMappings:
- 0:80
labels:
app: shipdemo-node-ecr-deploy-ecs-loadbalancer
env: test
flags:
- amazon-ecr-ecs-loadbalancer
# env vars for Test
- name: shipdemo-params-ecs-test
type: params
version:
params:
ENVIRONMENT: "TEST"
PORT: 80
flags:
- amazon-ecr-ecs-loadbalancer
################################
# set service version seed
- name: shipdemo-version-ecs
type: version
seed:
versionName: "1.1.0"
flags:
- amazon-ecr-ecs-loadbalancer
################################
# PROD resources
# Docker Image Options
- name: shipdemo-img-options-ecs-prod
type: dockerOptions
version:
memory: 64
cpuShares: 128
portMappings:
- 0:80
labels:
app: shipdemo-node-ecr-deploy-ecs-loadbalancer
env: prod
flags:
- amazon-ecr-ecs-loadbalancer
# env vars for Prod
- name: shipdemo-params-ecs-prod
type: params
version:
params:
ENVIRONMENT: "PROD"
PORT: 80
flags:
- amazon-ecr-ecs-loadbalancer
# PROD replicas
- name: shipdemo-replicas-ecs-prod
type: replicas
version:
count: 2
flags:
- amazon-ecr-ecs-loadbalancer
# ################################