Skip to content

Commit

Permalink
Merge pull request #12 from base2Services/feature/dynamodb-vpc-endpoints
Browse files Browse the repository at this point in the history
Add DynamoDB VPC Gateway Endpoint
  • Loading branch information
jaredbrook committed Apr 6, 2022
2 parents 1d8ef1f + b195511 commit d1b52d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ ip_blocks:
### VPC Gateway Endpoints
A S3 VPC Gateway Endpoint is always created and added to all route tables.
S3 and DynamoDB VPC Gateway Endpoints are always created and added to all route tables.
### VPC Interface Endpoints
Expand Down
11 changes: 11 additions & 0 deletions vpc-v2.cfndsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,17 @@
Value(Ref(:S3VpcEndpoint))
Export FnSub("${EnvironmentName}-#{external_parameters[:component_name]}-S3VPCEndpointId")
}

EC2_VPCEndpoint(:DynamodbVpcEndpoint) {
VpcId Ref(:VPC)
ServiceName FnSub("com.amazonaws.${AWS::Region}.dynamodb")
RouteTableIds route_tables
}

Output(:DynamodbVPCEndpointId) {
Value(Ref(:DynamodbVpcEndpoint))
Export FnSub("${EnvironmentName}-#{external_parameters[:component_name]}-DynamodbVPCEndpointId")
}

endpoints = external_parameters.fetch(:endpoints, [])

Expand Down

0 comments on commit d1b52d8

Please sign in to comment.