Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: open gremlin lambda to outbound DNS resolution access in vpc cid… #555

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion source/cfn/templates/gremlin-resolvers.template
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,16 @@ Resources:
GroupDescription: Security group for Gremlin AppSync lambda
VpcId: !Ref VpcId
SecurityGroupEgress:
- Description: Restrict egress to VPC only
- Description: Restrict egress to neptune in VPC only
CidrIp: !Ref VPCCidrBlock
IpProtocol: tcp
ToPort: !Ref NeptuneClusterPort
FromPort: !Ref NeptuneClusterPort
- Description: Allow UDP egress to DNS resolvers
CidrIp: !Ref VPCCidrBlock
IpProtocol: udp
ToPort: 53
FromPort: 53

NeptuneDbSgIngressRule:
Type: AWS::EC2::SecurityGroupIngress
Expand Down Expand Up @@ -318,3 +323,4 @@ Resources:
TypeName: Query
FieldName: getResourcesRegionMetadata
DataSourceName: !Ref AppSyncSettingsLambdaDataSourceName