49
49
default : false
50
50
type : boolean
51
51
required : false
52
+ skip_lambda_layer :
53
+ description : " Skip publishing Lambda Layers as it can publish duplicated versions of the same layer. Useful for semi-failed releases"
54
+ type : boolean
55
+ required : false
56
+
52
57
workflow_call :
53
58
inputs :
54
59
latest_published_version :
72
77
description : " Sealed source code integrity hash"
73
78
type : string
74
79
required : true
80
+ skip_lambda_layer :
81
+ description : " Skip publishing Lambda Layers as it can publish duplicated versions of the same layer. Useful for semi-failed releases"
82
+ default : false
83
+ type : boolean
84
+ required : false
75
85
76
86
permissions :
77
87
contents : read
@@ -180,6 +190,7 @@ jobs:
180
190
source_code_integrity_hash : ${{ inputs.source_code_integrity_hash }}
181
191
182
192
prod :
193
+ if : ${{ !inputs.skip_lambda_layer }}
183
194
needs : beta
184
195
# lower privilege propagated from parent workflow (release-v3.yml)
185
196
permissions :
@@ -195,41 +206,39 @@ jobs:
195
206
source_code_artifact_name : ${{ inputs.source_code_artifact_name }}
196
207
source_code_integrity_hash : ${{ inputs.source_code_integrity_hash }}
197
208
198
- # UNCOMMENT sar-beta JOB
199
- # sar-beta:
200
- # needs: beta # canaries run on Layer Beta env
201
- # permissions:
209
+ sar-beta :
210
+ needs : beta # canaries run on Layer Beta env
211
+ permissions :
202
212
# lower privilege propagated from parent workflow (release.yml)
203
- # id-token: write
204
- # contents: read
205
- # pull-requests: none
206
- # pages: none
207
- # uses: ./.github/workflows/reusable_deploy_v3_sar.yml
208
- # secrets: inherit
209
- # with:
210
- # stage: "BETA"
211
- # environment: "layer-beta"
212
- # package-version: ${{ inputs.latest_published_version }}
213
- # source_code_artifact_name: ${{ inputs.source_code_artifact_name }}
214
- # source_code_integrity_hash: ${{ inputs.source_code_integrity_hash }}
213
+ id-token : write
214
+ contents : read
215
+ pull-requests : none
216
+ pages : none
217
+ uses : ./.github/workflows/reusable_deploy_v3_sar.yml
218
+ secrets : inherit
219
+ with :
220
+ stage : " BETA"
221
+ environment : " layer-beta"
222
+ package-version : ${{ inputs.latest_published_version }}
223
+ source_code_artifact_name : ${{ inputs.source_code_artifact_name }}
224
+ source_code_integrity_hash : ${{ inputs.source_code_integrity_hash }}
215
225
216
- # UNCOMMENT sar-prod JOB
217
- # sar-prod:
218
- # needs: sar-beta
219
- # permissions:
226
+ sar-prod :
227
+ needs : sar-beta
228
+ permissions :
220
229
# lower privilege propagated from parent workflow (release.yml)
221
- # id-token: write
222
- # contents: read
223
- # pull-requests: none
224
- # pages: none
225
- # uses: ./.github/workflows/reusable_deploy_v3_sar.yml
226
- # secrets: inherit
227
- # with:
228
- # stage: "PROD"
229
- # environment: "layer-prod"
230
- # package-version: ${{ inputs.latest_published_version }}
231
- # source_code_artifact_name: ${{ inputs.source_code_artifact_name }}
232
- # source_code_integrity_hash: ${{ inputs.source_code_integrity_hash }}
230
+ id-token : write
231
+ contents : read
232
+ pull-requests : none
233
+ pages : none
234
+ uses : ./.github/workflows/reusable_deploy_v3_sar.yml
235
+ secrets : inherit
236
+ with :
237
+ stage : " PROD"
238
+ environment : " layer-prod"
239
+ package-version : ${{ inputs.latest_published_version }}
240
+ source_code_artifact_name : ${{ inputs.source_code_artifact_name }}
241
+ source_code_integrity_hash : ${{ inputs.source_code_integrity_hash }}
233
242
234
243
235
244
# Updating the documentation with the latest Layer ARNs is a two-phase process
0 commit comments