Skip to content

Commit cad96a6

Browse files
authored
chore(layers): expand to all aws commercial regions (#1324)
1 parent 4bbcc24 commit cad96a6

File tree

2 files changed

+28
-25
lines changed

2 files changed

+28
-25
lines changed

Diff for: .github/workflows/reusable_deploy_layer_stack.yml

+25-24
Original file line numberDiff line numberDiff line change
@@ -26,30 +26,31 @@ jobs:
2626
strategy:
2727
fail-fast: false
2828
matrix:
29-
region: [
30-
"af-south-1",
31-
# "eu-central-1",
32-
# "us-east-1",
33-
# "us-east-2",
34-
# "us-west-1",
35-
# "us-west-2",
36-
# "ap-east-1",
37-
# "ap-south-1",
38-
# "ap-northeast-1",
39-
# "ap-northeast-2",
40-
# "ap-southeast-1",
41-
# "ap-southeast-2",
42-
# "ca-central-1",
43-
# "eu-west-1",
44-
# "eu-west-2",
45-
# "eu-west-3",
46-
# "eu-south-1",
47-
# "eu-north-1",
48-
# "sa-east-1",
49-
# "ap-southeast-3",
50-
# "ap-northeast-3",
51-
# "me-south-1"
52-
]
29+
region:
30+
[
31+
"af-south-1",
32+
"eu-central-1",
33+
"us-east-1",
34+
"us-east-2",
35+
"us-west-1",
36+
"us-west-2",
37+
"ap-east-1",
38+
"ap-south-1",
39+
"ap-northeast-1",
40+
"ap-northeast-2",
41+
"ap-southeast-1",
42+
"ap-southeast-2",
43+
"ca-central-1",
44+
"eu-west-1",
45+
"eu-west-2",
46+
"eu-west-3",
47+
"eu-south-1",
48+
"eu-north-1",
49+
"sa-east-1",
50+
"ap-southeast-3",
51+
"ap-northeast-3",
52+
"me-south-1",
53+
]
5354
steps:
5455
- name: checkout
5556
uses: actions/checkout@v3

Diff for: layer/layer/layer_stack.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from aws_cdk import RemovalPolicy, Stack
1+
from aws_cdk import CfnOutput, RemovalPolicy, Stack
22
from aws_cdk.aws_lambda import CfnLayerVersionPermission
33
from aws_cdk.aws_ssm import StringParameter
44
from cdk_lambda_powertools_python_layer import LambdaPowertoolsLayer
@@ -27,3 +27,5 @@ def __init__(
2727
layer.apply_removal_policy(RemovalPolicy.RETAIN)
2828

2929
StringParameter(self, "VersionArn", parameter_name=ssm_paramter_layer_arn, string_value=layer.layer_version_arn)
30+
31+
CfnOutput(self, "LatestLayerArn", value=layer.layer_version_arn)

0 commit comments

Comments
 (0)