7
7
agents :
8
8
queue : " ${BUILDKITE_AGENT_META_DATA_QUEUE}"
9
9
10
+ - id : " cfn-lint"
11
+ name : " :mag: cfn-lint"
12
+ command : .buildkite/steps/cfn-lint.sh
13
+ agents :
14
+ queue : " ${BUILDKITE_AGENT_META_DATA_QUEUE}"
15
+ soft_fail :
16
+ # https://github.com/aws-cloudformation/cfn-lint#exit-codes
17
+ - exit_status : 4 # Warning
18
+ - exit_status : 8 # Informational
19
+ - exit_status : 12 # Warning and informational
20
+
10
21
- label : " :bash: shfmt"
11
22
key : fmt
12
23
command : .buildkite/steps/shfmt.sh
18
29
agents :
19
30
queue : " ${BUILDKITE_AGENT_META_DATA_QUEUE}"
20
31
plugins :
21
- - docker-compose#v2.1 .0:
32
+ - docker-compose#v5.10 .0:
22
33
run : fixperms-tests
23
34
config : .buildkite/docker-compose.yml
24
35
@@ -30,7 +41,15 @@ steps:
30
41
depends_on :
31
42
- " fmt"
32
43
- " lint"
44
+ - " cfn-lint"
33
45
- " fixperms-tests"
46
+ plugins :
47
+ - aws-assume-role-with-web-identity#v1.4.0:
48
+ role-arn : arn:aws:iam::172840064832:role/pipeline-buildkite-aws-stack-buildkite-aws-stack
49
+ session-tags :
50
+ - organization_slug
51
+ - organization_id
52
+ - pipeline_slug
34
53
35
54
- id : " packer-windows-amd64"
36
55
name : " :packer: :windows:"
@@ -42,7 +61,15 @@ steps:
42
61
depends_on :
43
62
- " fmt"
44
63
- " lint"
64
+ - " cfn-lint"
45
65
- " fixperms-tests"
66
+ plugins :
67
+ - aws-assume-role-with-web-identity#v1.4.0:
68
+ role-arn : arn:aws:iam::172840064832:role/pipeline-buildkite-aws-stack-buildkite-aws-stack
69
+ session-tags :
70
+ - organization_slug
71
+ - organization_id
72
+ - pipeline_slug
46
73
47
74
- id : " launch-windows-amd64"
48
75
name : " :cloudformation: :windows: AMD64 Launch"
@@ -53,13 +80,20 @@ steps:
53
80
depends_on :
54
81
- " packer-windows-amd64"
55
82
- " deploy-service-role-stack"
83
+ plugins :
84
+ - aws-assume-role-with-web-identity#v1.4.0:
85
+ role-arn : arn:aws:iam::172840064832:role/pipeline-buildkite-aws-stack-buildkite-aws-stack
86
+ session-tags :
87
+ - organization_slug
88
+ - organization_id
89
+ - pipeline_slug
56
90
57
91
- id : " test-windows-amd64"
58
92
name : " :cloudformation: :windows: AMD64 Test"
59
93
command :
60
94
- git --version
61
95
- docker info
62
- - docker run --rm mcr.microsoft.com/windows/nanoserver:ltsc2019 cmd.exe /c echo hello
96
+ - docker run --rm mcr.microsoft.com/windows/nanoserver:ltsc2022 cmd.exe /c echo hello
63
97
timeout_in_minutes : 5
64
98
agents :
65
99
stack : " buildkite-aws-stack-test-windows-amd64-${BUILDKITE_BUILD_NUMBER}"
@@ -75,6 +109,13 @@ steps:
75
109
queue : " ${BUILDKITE_AGENT_META_DATA_QUEUE}"
76
110
depends_on :
77
111
- " test-windows-amd64"
112
+ plugins :
113
+ - aws-assume-role-with-web-identity#v1.4.0:
114
+ role-arn : arn:aws:iam::172840064832:role/pipeline-buildkite-aws-stack-buildkite-aws-stack
115
+ session-tags :
116
+ - organization_slug
117
+ - organization_id
118
+ - pipeline_slug
78
119
79
120
- id : " packer-linux-amd64"
80
121
name : " :packer: :linux: AMD64"
@@ -86,7 +127,15 @@ steps:
86
127
depends_on :
87
128
- " fmt"
88
129
- " lint"
130
+ - " cfn-lint"
89
131
- " fixperms-tests"
132
+ plugins :
133
+ - aws-assume-role-with-web-identity#v1.4.0:
134
+ role-arn : arn:aws:iam::172840064832:role/pipeline-buildkite-aws-stack-buildkite-aws-stack
135
+ session-tags :
136
+ - organization_slug
137
+ - organization_id
138
+ - pipeline_slug
90
139
91
140
- id : " launch-linux-amd64"
92
141
name : " :cloudformation: :linux: AMD64 Launch"
@@ -97,6 +146,13 @@ steps:
97
146
depends_on :
98
147
- " packer-linux-amd64"
99
148
- " deploy-service-role-stack"
149
+ plugins :
150
+ - aws-assume-role-with-web-identity#v1.4.0:
151
+ role-arn : arn:aws:iam::172840064832:role/pipeline-buildkite-aws-stack-buildkite-aws-stack
152
+ session-tags :
153
+ - organization_slug
154
+ - organization_id
155
+ - pipeline_slug
100
156
101
157
- id : " test-linux-amd64"
102
158
name : " :cloudformation: :linux: AMD64 Test"
@@ -118,6 +174,13 @@ steps:
118
174
queue : " ${BUILDKITE_AGENT_META_DATA_QUEUE}"
119
175
depends_on :
120
176
- " test-linux-amd64"
177
+ plugins :
178
+ - aws-assume-role-with-web-identity#v1.4.0:
179
+ role-arn : arn:aws:iam::172840064832:role/pipeline-buildkite-aws-stack-buildkite-aws-stack
180
+ session-tags :
181
+ - organization_slug
182
+ - organization_id
183
+ - pipeline_slug
121
184
122
185
- id : " packer-linux-arm64"
123
186
name : " :packer: :linux: ARM64"
@@ -129,7 +192,15 @@ steps:
129
192
depends_on :
130
193
- " fmt"
131
194
- " lint"
195
+ - " cfn-lint"
132
196
- " fixperms-tests"
197
+ plugins :
198
+ - aws-assume-role-with-web-identity#v1.4.0:
199
+ role-arn : arn:aws:iam::172840064832:role/pipeline-buildkite-aws-stack-buildkite-aws-stack
200
+ session-tags :
201
+ - organization_slug
202
+ - organization_id
203
+ - pipeline_slug
133
204
134
205
- id : " launch-linux-arm64"
135
206
name : " :cloudformation: :linux: ARM64 Launch"
@@ -140,6 +211,13 @@ steps:
140
211
depends_on :
141
212
- " packer-linux-arm64"
142
213
- " deploy-service-role-stack"
214
+ plugins :
215
+ - aws-assume-role-with-web-identity#v1.4.0:
216
+ role-arn : arn:aws:iam::172840064832:role/pipeline-buildkite-aws-stack-buildkite-aws-stack
217
+ session-tags :
218
+ - organization_slug
219
+ - organization_id
220
+ - pipeline_slug
143
221
144
222
- id : " test-linux-arm64"
145
223
name : " :cloudformation: :linux: ARM64 Test"
@@ -161,6 +239,13 @@ steps:
161
239
queue : " ${BUILDKITE_AGENT_META_DATA_QUEUE}"
162
240
depends_on :
163
241
- " test-linux-arm64"
242
+ plugins :
243
+ - aws-assume-role-with-web-identity#v1.4.0:
244
+ role-arn : arn:aws:iam::172840064832:role/pipeline-buildkite-aws-stack-buildkite-aws-stack
245
+ session-tags :
246
+ - organization_slug
247
+ - organization_id
248
+ - pipeline_slug
164
249
165
250
- id : " delete-service-role-stack"
166
251
name : " :aws-iam: :cloudformation: Delete"
@@ -171,6 +256,13 @@ steps:
171
256
- " delete-windows-amd64"
172
257
- " delete-linux-amd64"
173
258
- " delete-linux-arm64"
259
+ plugins :
260
+ - aws-assume-role-with-web-identity#v1.4.0:
261
+ role-arn : arn:aws:iam::172840064832:role/pipeline-buildkite-aws-stack-buildkite-aws-stack
262
+ session-tags :
263
+ - organization_slug
264
+ - organization_id
265
+ - pipeline_slug
174
266
175
267
- id : " copy-ami"
176
268
name : " :cloudformation: 🚚 🌎"
@@ -182,6 +274,13 @@ steps:
182
274
- " test-linux-amd64"
183
275
- " test-linux-arm64"
184
276
- " test-windows-amd64"
277
+ plugins :
278
+ - aws-assume-role-with-web-identity#v1.4.0:
279
+ role-arn : arn:aws:iam::172840064832:role/pipeline-buildkite-aws-stack-buildkite-aws-stack
280
+ session-tags :
281
+ - organization_slug
282
+ - organization_id
283
+ - pipeline_slug
185
284
186
285
- id : " publish"
187
286
name : " :cloudformation: :rocket:"
@@ -193,10 +292,24 @@ steps:
193
292
concurrency_method : eager
194
293
artifact_paths : " build/*.yml"
195
294
depends_on : " copy-ami"
295
+ plugins :
296
+ - aws-assume-role-with-web-identity#v1.4.0:
297
+ role-arn : arn:aws:iam::172840064832:role/pipeline-buildkite-aws-stack-buildkite-aws-stack
298
+ session-tags :
299
+ - organization_slug
300
+ - organization_id
301
+ - pipeline_slug
196
302
197
303
- id : cleanup
198
304
name : " :broom: Cleanup"
199
305
command : .buildkite/steps/cleanup.sh
200
306
agents :
201
307
queue : " ${BUILDKITE_AGENT_META_DATA_QUEUE}"
202
308
depends_on : " publish"
309
+ plugins :
310
+ - aws-assume-role-with-web-identity#v1.4.0:
311
+ role-arn : arn:aws:iam::172840064832:role/pipeline-buildkite-aws-stack-buildkite-aws-stack
312
+ session-tags :
313
+ - organization_slug
314
+ - organization_id
315
+ - pipeline_slug
0 commit comments