Skip to content

Commit 1fd4e7a

Browse files
Making SAR version works as expected
1 parent b4a5321 commit 1fd4e7a

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

.github/workflows/publish_v3_layer.yml

+12
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ on:
4949
default: false
5050
type: boolean
5151
required: false
52+
skip_lambda_layer:
53+
description: "Skip publishing Lambda Layers as it can't publish more than once. Useful for semi-failed releases"
54+
type: boolean
55+
required: false
56+
5257
workflow_call:
5358
inputs:
5459
latest_published_version:
@@ -72,6 +77,11 @@ on:
7277
description: "Sealed source code integrity hash"
7378
type: string
7479
required: true
80+
skip_lambda_layer:
81+
description: "Skip publishing Lambda Layers as it can't publish more than once. Useful for semi-failed releases"
82+
default: false
83+
type: boolean
84+
required: false
7585

7686
permissions:
7787
contents: read
@@ -164,6 +174,7 @@ jobs:
164174
path: layer_v3/cdk.py${{ matrix.python-version }}.out.zip
165175

166176
beta:
177+
if: ${{ !inputs.skip_lambda_layer }}
167178
needs: build-layer
168179
# lower privilege propagated from parent workflow (release-v3.yml)
169180
permissions:
@@ -180,6 +191,7 @@ jobs:
180191
source_code_integrity_hash: ${{ inputs.source_code_integrity_hash }}
181192

182193
prod:
194+
if: ${{ !inputs.skip_lambda_layer }}
183195
needs: beta
184196
# lower privilege propagated from parent workflow (release-v3.yml)
185197
permissions:

.github/workflows/release-v3.yml

+6
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ on:
4848
default: false
4949
type: boolean
5050
required: false
51+
skip_lambda_layer:
52+
description: "Skip publishing Lambda Layers as it can't publish more than once. Useful for semi-failed releases"
53+
default: false
54+
type: boolean
55+
required: false
5156
skip_code_quality:
5257
description: "Skip tests, linting, and baseline. Only use if release fail for reasons beyond our control and you need a quick release."
5358
default: false
@@ -350,6 +355,7 @@ jobs:
350355
pre_release: ${{ inputs.pre_release }}
351356
source_code_artifact_name: ${{ needs.seal.outputs.artifact_name }}
352357
source_code_integrity_hash: ${{ needs.seal.outputs.integrity_hash }}
358+
skip_lambda_layer: ${{ inputs.skip_lambda_layer }}
353359

354360
post_release:
355361
needs: [seal, release, publish_layer]

docs/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ You can install Powertools for AWS Lambda (Python) using your favorite dependenc
238238

239239
| App | | | ARN |
240240
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | --- | ----------------------------------------------------------------------------------------------------------------------------- |
241-
| [**aws-lambda-powertools-python-layer-v3**](https://serverlessrepo.aws.amazon.com/applications/eu-west-1/057560766410/aws-lambda-powertools-python-layer){target="_blank"} | | | __arn:aws:serverlessrepo:eu-west-1:057560766410:applications/aws-lambda-powertools-python-layer__{: .copyMe}:clipboard: |
242-
| [**aws-lambda-powertools-python-layer-arm64-v3**](https://serverlessrepo.aws.amazon.com/applications/eu-west-1/057560766410/aws-lambda-powertools-python-layer-arm64){target="_blank"} | | | __arn:aws:serverlessrepo:eu-west-1:057560766410:applications/aws-lambda-powertools-python-layer-arm64__{: .copyMe}:clipboard: |
241+
| [**aws-lambda-powertools-python-layer**](https://serverlessrepo.aws.amazon.com/applications/eu-west-1/057560766410/aws-lambda-powertools-python-layer){target="_blank"} | | | __arn:aws:serverlessrepo:eu-west-1:057560766410:applications/aws-lambda-powertools-python-layer__{: .copyMe}:clipboard: |
242+
| [**aws-lambda-powertools-python-layer-arm64**](https://serverlessrepo.aws.amazon.com/applications/eu-west-1/057560766410/aws-lambda-powertools-python-layer-arm64){target="_blank"} | | | __arn:aws:serverlessrepo:eu-west-1:057560766410:applications/aws-lambda-powertools-python-layer-arm64__{: .copyMe}:clipboard: |
243243

244244
??? question "Don't have enough permissions? Expand for a least-privilege IAM policy example"
245245

0 commit comments

Comments
 (0)