File tree 8 files changed +32
-23
lines changed
8 files changed +32
-23
lines changed Original file line number Diff line number Diff line change
1
+ name : Region Bootstrap
2
+
1
3
# bootstraps new regions
2
4
#
3
5
# PURPOSE
27
29
required : true
28
30
description : AWS region to bootstrap (i.e. eu-west-1)
29
31
30
- name : Region Bootstrap
31
32
run-name : Region Bootstrap ${{ inputs.region }}
32
33
33
34
permissions :
@@ -38,13 +39,13 @@ jobs:
38
39
name : Install CDK
39
40
runs-on : ubuntu-latest
40
41
permissions :
41
- contents : write
42
+ contents : read
42
43
id-token : write
43
44
environment : layer-${{ inputs.environment }}
44
45
steps :
45
46
- id : credentials
46
47
name : AWS Credentials
47
- uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
48
+ uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
48
49
with :
49
50
aws-region : ${{ inputs.region }}
50
51
role-to-assume : ${{ secrets.REGION_IAM_ROLE }}
69
70
name : Copy Layers
70
71
runs-on : ubuntu-latest
71
72
permissions :
72
- contents : write
73
+ contents : read
73
74
id-token : write
74
75
strategy :
75
76
matrix :
90
91
steps :
91
92
- id : credentials
92
93
name : AWS Credentials
93
- uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
94
+ uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
94
95
with :
95
96
aws-region : us-east-1
96
97
role-to-assume : ${{ secrets.REGION_IAM_ROLE }}
@@ -106,4 +107,4 @@ jobs:
106
107
run : go install github.com/aws-powertools/actions/layer-balancer/cmd/balance@latest
107
108
- id : run-balance
108
109
name : Run Balance
109
- run : balance -read-region us-east-1 -write-region ${{ inputs.region }} -write-role ${{ secrets.BALANCE_ROLE_ARN }} -layer-name ${{ matrix.layer }} -dry-run=false
110
+ run : balance -read-region us-east-1 -write-region ${{ inputs.region }} -write-role ${{ secrets.BALANCE_ROLE_ARN }} -layer-name ${{ matrix.layer }} -dry-run=false
Original file line number Diff line number Diff line change
1
+ name : Layer Deployment (GovCloud)
2
+
1
3
# GovCloud Layer Publish
2
4
# ---
3
5
# This workflow publishes a specific layer version in an AWS account based on the environment input.
32
34
type : string
33
35
required : true
34
36
35
- name : Layer Deployment (GovCloud)
36
37
run-name : Layer Deployment (GovCloud) - ${{ inputs.environment }}
37
38
39
+ permissions :
40
+ contents : read
41
+
38
42
jobs :
39
43
download :
40
44
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -303,8 +303,8 @@ jobs:
303
303
needs : [update_v3_layer_arn_docs, prepare_docs_alias]
304
304
permissions :
305
305
# lower privilege propagated from parent workflow (release.yml)
306
- contents : write
307
- pages : write
306
+ # contents: write
307
+ # pages: write
308
308
pull-requests : none
309
309
id-token : write
310
310
secrets : inherit
Original file line number Diff line number Diff line change @@ -154,11 +154,12 @@ jobs:
154
154
155
155
- name : Install poetry
156
156
run : pipx install git+https://github.com/python-poetry/poetry@68b88e5390720a3dd84f02940ec5200bfce39ac6 # v1.5.0
157
- - name : aws credentials
158
- uses : aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2.2.0
157
+ - name : Configure AWS credentials
158
+ uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
159
159
with :
160
160
aws-region : ${{ matrix.region }}
161
161
role-to-assume : ${{ secrets.AWS_LAYERS_ROLE_ARN }}
162
+ mask-aws-account-id : true
162
163
- name : Setup Node.js
163
164
uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
164
165
with :
Original file line number Diff line number Diff line change @@ -86,11 +86,12 @@ jobs:
86
86
artifact_name : ${{ inputs.source_code_artifact_name }}
87
87
88
88
89
- - name : AWS credentials
90
- uses : aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2.2.0
89
+ - name : Configure AWS credentials
90
+ uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
91
91
with :
92
92
aws-region : ${{ env.AWS_REGION }}
93
93
role-to-assume : ${{ secrets.AWS_LAYERS_ROLE_ARN }}
94
+ mask-aws-account-id : true
94
95
95
96
# NOTE
96
97
# We connect to Layers account to log our intent to publish a SAR Layer
Original file line number Diff line number Diff line change 40
40
runs-on : ubuntu-latest
41
41
environment : " Docs"
42
42
permissions :
43
- contents : write # push to gh-pages
43
+ contents : read # push to gh-pages
44
44
id-token : write # trade JWT token for AWS credentials in AWS Docs account
45
- pages : write # uncomment if mike fails as we migrated to S3 hosting
45
+ # pages: write # uncomment if mike fails as we migrated to S3 hosting
46
46
steps :
47
47
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
48
48
with :
@@ -79,10 +79,11 @@ jobs:
79
79
poetry run mike set-default --push latest
80
80
81
81
- name : Configure AWS credentials
82
- uses : aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355
82
+ uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
83
83
with :
84
84
aws-region : us-east-1
85
85
role-to-assume : ${{ secrets.AWS_DOCS_ROLE_ARN }}
86
+ mask-aws-account-id : true
86
87
- name : Copy API Docs
87
88
run : |
88
89
cp -r api site/
Original file line number Diff line number Diff line change @@ -70,11 +70,12 @@ jobs:
70
70
npm ci
71
71
npx cdk --version
72
72
- name : Install dependencies
73
- run : dev-quality-code
73
+ run : make dev-quality-code
74
74
- name : Configure AWS credentials
75
- uses : aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2.2.0
75
+ uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
76
76
with :
77
77
role-to-assume : ${{ secrets.AWS_TEST_ROLE_ARN }}
78
78
aws-region : ${{ env.AWS_DEFAULT_REGION }}
79
+ mask-aws-account-id : true
79
80
- name : Test
80
81
run : make e2e-test
Original file line number Diff line number Diff line change
1
+ name : SSM Parameters
2
+ run-name : SSM Parameters - Python
3
+
1
4
# SSM Parameters update
2
5
#
3
6
# PROCESS
38
41
type : string
39
42
required : true
40
43
41
- name : SSM Parameters
42
- run-name : SSM Parameters - Python
43
-
44
44
permissions :
45
45
contents : read
46
46
@@ -59,14 +59,14 @@ jobs:
59
59
]
60
60
61
61
permissions :
62
- contents : write
62
+ contents : read
63
63
id-token : write
64
64
steps :
65
65
- id : transform
66
66
run : |
67
67
echo 'CONVERTED_REGION=${{ matrix.region }}' | tr 'a-z\-' 'A-Z_' >> "$GITHUB_OUTPUT"
68
68
- id : creds
69
- uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
69
+ uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
70
70
with :
71
71
aws-region : ${{ matrix.region }}
72
72
role-to-assume : ${{ secrets[format('{0}', steps.transform.outputs.CONVERTED_REGION)] }}
You can’t perform that action at this time.
0 commit comments