Skip to content

Commit

Permalink
[Bug Fix] vpc/vpc-endpoint-* - Deploy endpoint to public subnets as well
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwittig authored Apr 9, 2019
1 parent 0f225f3 commit 7a78b52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vpc/vpc-endpoint-dynamodb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Resources:
Endpoint:
Type: 'AWS::EC2::VPCEndpoint'
Properties:
RouteTableIds: !Split [',', {'Fn::ImportValue': !Sub '${ParentVPCStack}-RouteTablesPrivate'}]
RouteTableIds: !Split [',', !Join [',', [{'Fn::ImportValue': !Sub '${ParentVPCStack}-RouteTablesPublic'}, {'Fn::ImportValue': !Sub '${ParentVPCStack}-RouteTablesPrivate'}]]]
ServiceName: !Sub 'com.amazonaws.${AWS::Region}.dynamodb'
VpcId: {'Fn::ImportValue': !Sub '${ParentVPCStack}-VPC'}
Outputs:
Expand Down
2 changes: 1 addition & 1 deletion vpc/vpc-endpoint-s3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Resources:
EndpointS3:
Type: 'AWS::EC2::VPCEndpoint'
Properties:
RouteTableIds: !Split [',', {'Fn::ImportValue': !Sub '${ParentVPCStack}-RouteTablesPrivate'}]
RouteTableIds: !Split [',', !Join [',', [{'Fn::ImportValue': !Sub '${ParentVPCStack}-RouteTablesPublic'}, {'Fn::ImportValue': !Sub '${ParentVPCStack}-RouteTablesPrivate'}]]]
ServiceName: !Sub 'com.amazonaws.${AWS::Region}.s3'
VpcId: {'Fn::ImportValue': !Sub '${ParentVPCStack}-VPC'}
Outputs:
Expand Down

0 comments on commit 7a78b52

Please sign in to comment.