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,10 +41,15 @@ steps:
30
41
depends_on :
31
42
- " fmt"
32
43
- " lint"
44
+ - " cfn-lint"
33
45
- " fixperms-tests"
34
46
plugins :
35
- - aws-assume-role-with-web-identity#v1.1 .0:
47
+ - aws-assume-role-with-web-identity#v1.4 .0:
36
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
37
53
38
54
- id : " packer-windows-amd64"
39
55
name : " :packer: :windows:"
@@ -45,10 +61,15 @@ steps:
45
61
depends_on :
46
62
- " fmt"
47
63
- " lint"
64
+ - " cfn-lint"
48
65
- " fixperms-tests"
49
66
plugins :
50
- - aws-assume-role-with-web-identity#v1.1 .0:
67
+ - aws-assume-role-with-web-identity#v1.4 .0:
51
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
52
73
53
74
- id : " launch-windows-amd64"
54
75
name : " :cloudformation: :windows: AMD64 Launch"
@@ -60,15 +81,19 @@ steps:
60
81
- " packer-windows-amd64"
61
82
- " deploy-service-role-stack"
62
83
plugins :
63
- - aws-assume-role-with-web-identity#v1.1 .0:
84
+ - aws-assume-role-with-web-identity#v1.4 .0:
64
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
65
90
66
91
- id : " test-windows-amd64"
67
92
name : " :cloudformation: :windows: AMD64 Test"
68
93
command :
69
94
- git --version
70
95
- docker info
71
- - 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
72
97
timeout_in_minutes : 5
73
98
agents :
74
99
stack : " buildkite-aws-stack-test-windows-amd64-${BUILDKITE_BUILD_NUMBER}"
@@ -85,8 +110,12 @@ steps:
85
110
depends_on :
86
111
- " test-windows-amd64"
87
112
plugins :
88
- - aws-assume-role-with-web-identity#v1.1 .0:
113
+ - aws-assume-role-with-web-identity#v1.4 .0:
89
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
90
119
91
120
- id : " packer-linux-amd64"
92
121
name : " :packer: :linux: AMD64"
@@ -98,10 +127,15 @@ steps:
98
127
depends_on :
99
128
- " fmt"
100
129
- " lint"
130
+ - " cfn-lint"
101
131
- " fixperms-tests"
102
132
plugins :
103
- - aws-assume-role-with-web-identity#v1.1 .0:
133
+ - aws-assume-role-with-web-identity#v1.4 .0:
104
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
105
139
106
140
- id : " launch-linux-amd64"
107
141
name : " :cloudformation: :linux: AMD64 Launch"
@@ -113,8 +147,12 @@ steps:
113
147
- " packer-linux-amd64"
114
148
- " deploy-service-role-stack"
115
149
plugins :
116
- - aws-assume-role-with-web-identity#v1.1 .0:
150
+ - aws-assume-role-with-web-identity#v1.4 .0:
117
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
118
156
119
157
- id : " test-linux-amd64"
120
158
name : " :cloudformation: :linux: AMD64 Test"
@@ -137,8 +175,12 @@ steps:
137
175
depends_on :
138
176
- " test-linux-amd64"
139
177
plugins :
140
- - aws-assume-role-with-web-identity#v1.1 .0:
178
+ - aws-assume-role-with-web-identity#v1.4 .0:
141
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
142
184
143
185
- id : " packer-linux-arm64"
144
186
name : " :packer: :linux: ARM64"
@@ -150,10 +192,15 @@ steps:
150
192
depends_on :
151
193
- " fmt"
152
194
- " lint"
195
+ - " cfn-lint"
153
196
- " fixperms-tests"
154
197
plugins :
155
- - aws-assume-role-with-web-identity#v1.1 .0:
198
+ - aws-assume-role-with-web-identity#v1.4 .0:
156
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
157
204
158
205
- id : " launch-linux-arm64"
159
206
name : " :cloudformation: :linux: ARM64 Launch"
@@ -165,8 +212,12 @@ steps:
165
212
- " packer-linux-arm64"
166
213
- " deploy-service-role-stack"
167
214
plugins :
168
- - aws-assume-role-with-web-identity#v1.1 .0:
215
+ - aws-assume-role-with-web-identity#v1.4 .0:
169
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
170
221
171
222
- id : " test-linux-arm64"
172
223
name : " :cloudformation: :linux: ARM64 Test"
@@ -189,8 +240,12 @@ steps:
189
240
depends_on :
190
241
- " test-linux-arm64"
191
242
plugins :
192
- - aws-assume-role-with-web-identity#v1.1 .0:
243
+ - aws-assume-role-with-web-identity#v1.4 .0:
193
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
194
249
195
250
- id : " delete-service-role-stack"
196
251
name : " :aws-iam: :cloudformation: Delete"
@@ -202,8 +257,12 @@ steps:
202
257
- " delete-linux-amd64"
203
258
- " delete-linux-arm64"
204
259
plugins :
205
- - aws-assume-role-with-web-identity#v1.1 .0:
260
+ - aws-assume-role-with-web-identity#v1.4 .0:
206
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
207
266
208
267
- id : " copy-ami"
209
268
name : " :cloudformation: 🚚 🌎"
@@ -216,8 +275,12 @@ steps:
216
275
- " test-linux-arm64"
217
276
- " test-windows-amd64"
218
277
plugins :
219
- - aws-assume-role-with-web-identity#v1.1 .0:
278
+ - aws-assume-role-with-web-identity#v1.4 .0:
220
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
221
284
222
285
- id : " publish"
223
286
name : " :cloudformation: :rocket:"
@@ -230,8 +293,12 @@ steps:
230
293
artifact_paths : " build/*.yml"
231
294
depends_on : " copy-ami"
232
295
plugins :
233
- - aws-assume-role-with-web-identity#v1.1 .0:
296
+ - aws-assume-role-with-web-identity#v1.4 .0:
234
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
235
302
236
303
- id : cleanup
237
304
name : " :broom: Cleanup"
@@ -240,5 +307,9 @@ steps:
240
307
queue : " ${BUILDKITE_AGENT_META_DATA_QUEUE}"
241
308
depends_on : " publish"
242
309
plugins :
243
- - aws-assume-role-with-web-identity#v1.1 .0:
310
+ - aws-assume-role-with-web-identity#v1.4 .0:
244
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