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