Skip to content

Commit f1ccaf7

Browse files
committed
* 'develop' of https://github.com/awslabs/aws-lambda-powertools-python: chore(ci): use gh environment for beta and prod layer deploy (aws-powertools#1356) chore(ci): remove core group from codeowners (aws-powertools#1358)
2 parents b3cbef0 + bbceb4a commit f1ccaf7

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
22

3-
* @awslabs/aws-lambda-powertools-python @awslabs/aws-lambda-powertools-core
3+
* @awslabs/aws-lambda-powertools-python

.github/workflows/publish_layer.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ jobs:
6767
with:
6868
stage: "BETA"
6969
artefact-name: "cdk-layer-artefact"
70-
secrets:
71-
target-account-role: ${{ secrets.AWS_LAYERS_BETA_ROLE_ARN }}
70+
environment: "layer-beta"
7271

7372
deploy-prod:
7473
needs:
@@ -77,5 +76,4 @@ jobs:
7776
with:
7877
stage: "PROD"
7978
artefact-name: "cdk-layer-artefact"
80-
secrets:
81-
target-account-role: ${{ secrets.AWS_LAYERS_PROD_ROLE_ARN }}
79+
environment: "layer-prod"

.github/workflows/reusable_deploy_layer_stack.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@ on:
1313
artefact-name:
1414
required: true
1515
type: string
16+
environment:
17+
required: true
18+
type: string
1619
secrets:
1720
target-account-role:
1821
required: true
1922

2023
jobs:
2124
deploy-cdk-stack:
2225
runs-on: ubuntu-latest
26+
environment: ${{ inputs.environment }}
2327
defaults:
2428
run:
2529
working-directory: ./layer
@@ -58,7 +62,7 @@ jobs:
5862
uses: aws-actions/configure-aws-credentials@v1
5963
with:
6064
aws-region: ${{ matrix.region }}
61-
role-to-assume: ${{ secrets.target-account-role }}
65+
role-to-assume: ${{ secrets.AWS_LAYERS_ROLE_ARN }}
6266
- name: Setup Node.js
6367
uses: actions/setup-node@v3
6468
with:

0 commit comments

Comments
 (0)