Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit abce599

Browse files
Add S3 Endpoints for all regions
1 parent 2ae7f38 commit abce599

File tree

1 file changed

+1
-37
lines changed

1 file changed

+1
-37
lines changed

templates/aws-vpc.template

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -336,32 +336,6 @@
336336
"Condition": "4AZCondition"
337337
}
338338
]
339-
},
340-
"S3VPCEndpointCondition": {
341-
"Fn::And": [
342-
{
343-
"Condition": "PrivateSubnetsCondition"
344-
},
345-
{
346-
"Fn::Not": [
347-
{
348-
"Fn::Or": [
349-
{
350-
"Condition": "GovCloudCondition"
351-
},
352-
{
353-
"Fn::Equals": [
354-
{
355-
"Ref": "AWS::Region"
356-
},
357-
"cn-north-1"
358-
]
359-
}
360-
]
361-
}
362-
]
363-
}
364-
]
365339
}
366340
},
367341
"Resources": {
@@ -1574,7 +1548,6 @@
15741548
}
15751549
},
15761550
"S3VPCEndpoint": {
1577-
"Condition": "S3VPCEndpointCondition",
15781551
"Type": "AWS::EC2::VPCEndpoint",
15791552
"Properties": {
15801553
"PolicyDocument": {
@@ -1663,16 +1636,7 @@
16631636
}
16641637
],
16651638
"ServiceName": {
1666-
"Fn::Join": [
1667-
"",
1668-
[
1669-
"com.amazonaws.",
1670-
{
1671-
"Ref": "AWS::Region"
1672-
},
1673-
".s3"
1674-
]
1675-
]
1639+
"Fn::Sub": "com.amazonaws.${AWS::Region}.s3"
16761640
},
16771641
"VpcId": {
16781642
"Ref": "VPC"

0 commit comments

Comments
 (0)