Skip to content

Commit

Permalink
Move egress rule to a separated resource
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoVictor committed Jun 18, 2024
1 parent 8d00dea commit 4949aa2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,15 @@ Resources:
FromPort: -1
ToPort: -1
DestinationSecurityGroupId: !GetAtt RdsSecurityGroup.GroupId
- IpProtocol: tcp
FromPort: 443
ToPort: 443
DestinationSecurityGroupId: !GetAtt SecretsManagerEndpointSecurityGroup.GroupId

LambdaSecurityGroupEgress:
Type: AWS::EC2::SecurityGroupEgress
Properties:
GroupId: !GetAtt LambdaSecurityGroup.GroupId
IpProtocol: tcp
FromPort: 443
ToPort: 443
DestinationSecurityGroupId: !GetAtt SecretsManagerEndpointSecurityGroup.GroupId

SecretsManagerEndpointSecurityGroup:
Type: AWS::EC2::SecurityGroup
Expand Down

0 comments on commit 4949aa2

Please sign in to comment.