@@ -34,31 +34,63 @@ jobs:
34
34
strategy :
35
35
fail-fast : false
36
36
matrix :
37
- region :
38
- [
39
- " af-south-1" ,
40
- " eu-central-1" ,
41
- " us-east-1" ,
42
- " us-east-2" ,
43
- " us-west-1" ,
44
- " us-west-2" ,
45
- " ap-east-1" ,
46
- " ap-south-1" ,
47
- " ap-northeast-1" ,
48
- " ap-northeast-2" ,
49
- " ap-southeast-1" ,
50
- " ap-southeast-2" ,
51
- " ca-central-1" ,
52
- " eu-west-1" ,
53
- " eu-west-2" ,
54
- " eu-west-3" ,
55
- " eu-south-1" ,
56
- " eu-north-1" ,
57
- " sa-east-1" ,
58
- " ap-southeast-3" ,
59
- " ap-northeast-3" ,
60
- " me-south-1" ,
61
- ]
37
+ # To get a list of current regions, use:
38
+ # aws ec2 describe-regions --all-regions --query "Regions[].RegionName" --output text | tr "\t" "\n" | sort
39
+ include :
40
+ - region : " af-south-1"
41
+ has_arm64_support : " true"
42
+ - region : " ap-east-1"
43
+ has_arm64_support : " true"
44
+ - region : " ap-northeast-1"
45
+ has_arm64_support : " true"
46
+ - region : " ap-northeast-2"
47
+ has_arm64_support : " true"
48
+ - region : " ap-northeast-3"
49
+ has_arm64_support : " true"
50
+ - region : " ap-south-1"
51
+ has_arm64_support : " true"
52
+ - region : " ap-south-2"
53
+ has_arm64_support : " false"
54
+ - region : " ap-southeast-1"
55
+ has_arm64_support : " true"
56
+ - region : " ap-southeast-2"
57
+ has_arm64_support : " true"
58
+ - region : " ap-southeast-3"
59
+ has_arm64_support : " true"
60
+ - region : " ap-southeast-4"
61
+ has_arm64_support : " false"
62
+ - region : " ca-central-1"
63
+ has_arm64_support : " true"
64
+ - region : " eu-central-1"
65
+ has_arm64_support : " true"
66
+ - region : " eu-central-2"
67
+ has_arm64_support : " false"
68
+ - region : " eu-north-1"
69
+ has_arm64_support : " true"
70
+ - region : " eu-south-1"
71
+ has_arm64_support : " true"
72
+ - region : " eu-south-2"
73
+ has_arm64_support : " false"
74
+ - region : " eu-west-1"
75
+ has_arm64_support : " true"
76
+ - region : " eu-west-2"
77
+ has_arm64_support : " true"
78
+ - region : " eu-west-3"
79
+ has_arm64_support : " true"
80
+ - region : " me-central-1"
81
+ has_arm64_support : " false"
82
+ - region : " me-south-1"
83
+ has_arm64_support : " true"
84
+ - region : " sa-east-1"
85
+ has_arm64_support : " true"
86
+ - region : " us-east-1"
87
+ has_arm64_support : " true"
88
+ - region : " us-east-2"
89
+ has_arm64_support : " true"
90
+ - region : " us-west-1"
91
+ has_arm64_support : " true"
92
+ - region : " us-west-2"
93
+ has_arm64_support : " true"
62
94
steps :
63
95
- name : checkout
64
96
uses : actions/checkout@v3
99
131
- name : unzip artefact
100
132
run : unzip cdk.out.zip
101
133
- name : CDK Deploy Layer
102
- run : npx cdk deploy --app cdk.out --context region=${{ matrix.region }} 'LayerV2Stack' --require-approval never --verbose --outputs-file cdk-outputs.json
134
+ run : npx cdk deploy --app cdk.out --context region=${{ matrix.region }} --parameters HasARM64Support=${{ matrix.has_arm64_support }} 'LayerV2Stack' --require-approval never --verbose --outputs-file cdk-outputs.json
103
135
- name : Store latest Layer ARN
104
136
if : ${{ inputs.stage == 'PROD' }}
105
137
run : |
@@ -116,7 +148,7 @@ jobs:
116
148
if-no-files-found : error
117
149
retention-days : 1
118
150
- name : CDK Deploy Canary
119
- run : npx cdk deploy --app cdk.out --context region=${{ matrix.region}} --parameters DeployStage="${{ inputs.stage }}" 'CanaryV2Stack' --require-approval never --verbose
151
+ run : npx cdk deploy --app cdk.out --context region=${{ matrix.region }} --parameters DeployStage="${{ inputs.stage }}" --parameters HasARM64Support=${{ matrix.has_arm64_support }} 'CanaryV2Stack' --require-approval never --verbose
120
152
121
153
update_v2_layer_arn_docs :
122
154
needs : deploy-cdk-stack
0 commit comments