File tree Expand file tree Collapse file tree 11 files changed +390
-359
lines changed Expand file tree Collapse file tree 11 files changed +390
-359
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,23 @@ permissions:
34
34
contents : read
35
35
36
36
jobs :
37
- cdk :
38
- name : Install CDK
37
+ bootstrap :
38
+ name : Bootstrap Region
39
39
runs-on : ubuntu-latest
40
40
permissions :
41
- contents : write
42
41
id-token : write
43
42
environment : layer-${{ inputs.environment }}
44
43
steps :
44
+ - name : checkout
45
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
46
+ with :
47
+ ref : ${{ github.sha }}
48
+ - name : Setup Node.js
49
+ uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
50
+ with :
51
+ node-version : " 22"
52
+ - name : Setup dependencies
53
+ uses : aws-powertools/actions/.github/actions/cached-node-modules@29979bc5339bf54f76a11ac36ff67701986bb0f0
45
54
- id : credentials
46
55
name : AWS Credentials
47
56
uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
53
62
name : Create Workdir
54
63
run : |
55
64
mkdir -p build/project
56
- - id : cdk-install
57
- name : Install CDK
58
- working-directory : build
59
- run : |
60
- npm i aws-cdk@2.178.0
61
65
- id : cdk-project
62
66
name : CDK Project
63
67
working-directory : build/project
68
72
copy_layers :
69
73
name : Copy Layers
70
74
runs-on : ubuntu-latest
75
+ needs : bootstrap
71
76
permissions :
72
- contents : write
73
77
id-token : write
74
78
environment : layer-${{ inputs.environment }}
75
79
steps :
90
94
run : go env
91
95
- id : go-install-pkg
92
96
name : Install
93
- run : go install github.com/aws-powertools/actions/layer-balancer/cmd/balance@latest
97
+ run : go install github.com/aws-powertools/actions/layer-balancer/cmd/balance@@29979bc5339bf54f76a11ac36ff67701986bb0f0
94
98
- id : run-balance
95
99
name : Run Balance
96
- run : balance -read-region us-east-1 -write-region ${{ inputs.region }} -write-role ${{ secrets.BALANCE_ROLE_ARN }} -layer-name AWSLambdaPowertoolsTypeScriptV2 -dry-run=false
100
+ run : balance -read-region us-east-1 -write-region ${{ inputs.region }} -write-role ${{ secrets.BALANCE_ROLE_ARN }} -layer-name AWSLambdaPowertoolsTypeScriptV2 -dry-run=false
Original file line number Diff line number Diff line change 44
44
"@aws-lambda-powertools/metrics" : " ^2.13.1" ,
45
45
"@aws-lambda-powertools/parameters" : " ^2.13.1" ,
46
46
"@aws-lambda-powertools/tracer" : " ^2.13.1" ,
47
- "@aws-sdk/client-ssm" : " ^3.743 .0" ,
48
- "@aws-sdk/lib-dynamodb" : " ^3.743 .0" ,
47
+ "@aws-sdk/client-ssm" : " ^3.744 .0" ,
48
+ "@aws-sdk/lib-dynamodb" : " ^3.744 .0" ,
49
49
"@middy/core" : " ^4.7.0" ,
50
50
"@types/aws-lambda" : " ^8.10.147" ,
51
51
"@types/node" : " 22.13.1" ,
52
52
"aws-cdk" : " ^2.178.1" ,
53
53
"constructs" : " ^10.4.2" ,
54
- "esbuild" : " ^0.24.2 " ,
54
+ "esbuild" : " ^0.25.0 " ,
55
55
"typescript" : " ^5.7.3"
56
56
}
57
57
}
Original file line number Diff line number Diff line change 32
32
"@aws-lambda-powertools/parameters" : " ^2.13.1" ,
33
33
"@aws-lambda-powertools/parser" : " ^2.13.1" ,
34
34
"@aws-lambda-powertools/tracer" : " ^2.13.1" ,
35
- "@aws-sdk/client-appconfigdata" : " ^3.743 .0" ,
36
- "@aws-sdk/client-dynamodb" : " ^3.743 .0" ,
37
- "@aws-sdk/client-secrets-manager" : " ^3.743 .0" ,
38
- "@aws-sdk/client-ssm" : " ^3.743 .0" ,
39
- "@aws-sdk/util-dynamodb" : " ^3.743 .0" ,
35
+ "@aws-sdk/client-appconfigdata" : " ^3.744 .0" ,
36
+ "@aws-sdk/client-dynamodb" : " ^3.744 .0" ,
37
+ "@aws-sdk/client-secrets-manager" : " ^3.744 .0" ,
38
+ "@aws-sdk/client-ssm" : " ^3.744 .0" ,
39
+ "@aws-sdk/util-dynamodb" : " ^3.744 .0" ,
40
40
"@middy/core" : " ^4.7.0" ,
41
41
"aws-sdk" : " ^2.1692.0" ,
42
42
"aws-sdk-client-mock" : " ^4.1.0" ,
Original file line number Diff line number Diff line change 42
42
"dependencies" : {
43
43
"aws-cdk" : " ^2.178.1" ,
44
44
"aws-cdk-lib" : " ^2.178.1" ,
45
- "esbuild" : " ^0.24.2 " ,
45
+ "esbuild" : " ^0.25.0 " ,
46
46
"tsx" : " ^4.19.2"
47
47
}
48
48
}
You can’t perform that action at this time.
0 commit comments