File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 67
67
with :
68
68
stage : " BETA"
69
69
artefact-name : " cdk-layer-artefact"
70
- secrets :
71
- target-account-role : ${{ secrets.AWS_LAYERS_BETA_ROLE_ARN }}
70
+ environment : " layer-beta"
72
71
73
72
deploy-prod :
74
73
needs :
77
76
with :
78
77
stage : " PROD"
79
78
artefact-name : " cdk-layer-artefact"
80
- secrets :
81
- target-account-role : ${{ secrets.AWS_LAYERS_PROD_ROLE_ARN }}
79
+ environment : " layer-prod"
Original file line number Diff line number Diff line change 13
13
artefact-name :
14
14
required : true
15
15
type : string
16
+ environment :
17
+ required : true
18
+ type : string
16
19
secrets :
17
20
target-account-role :
18
21
required : true
19
22
20
23
jobs :
21
24
deploy-cdk-stack :
22
25
runs-on : ubuntu-latest
26
+ environment : ${{ inputs.environment }}
23
27
defaults :
24
28
run :
25
29
working-directory : ./layer
58
62
uses : aws-actions/configure-aws-credentials@v1
59
63
with :
60
64
aws-region : ${{ matrix.region }}
61
- role-to-assume : ${{ secrets.target-account-role }}
65
+ role-to-assume : ${{ secrets.AWS_LAYERS_ROLE_ARN }}
62
66
- name : Setup Node.js
63
67
uses : actions/setup-node@v3
64
68
with :
You can’t perform that action at this time.
0 commit comments