WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 0e6da27

Browse files
committed
Use SSM to access App instances, not bastion.
1 parent 11b9330 commit 0e6da27

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

templates/vpc.cfn.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,6 @@ Resources:
236236
FromPort: !Ref AppIngressPort
237237
SourceSecurityGroupId: !Ref ELBSecurityGroup
238238

239-
AppSecurityGroupFromBastionIngress:
240-
Type: AWS::EC2::SecurityGroupIngress # prevent security group circular references
241-
Properties:
242-
GroupId: !Ref AppSecurityGroup
243-
IpProtocol: tcp
244-
ToPort: 22
245-
FromPort: 22
246-
SourceSecurityGroupId: !Ref BastionSecurityGroup
247-
248239
BastionSecurityGroup:
249240
Type: AWS::EC2::SecurityGroup
250241
Properties:
@@ -272,15 +263,6 @@ Resources:
272263
- Key: Name
273264
Value: !Sub "${AWS::StackName}-BastionSecurityGroup"
274265

275-
BastionSecurityGroupToAppEgress:
276-
Type: AWS::EC2::SecurityGroupEgress # prevent security group circular references
277-
Properties:
278-
GroupId: !Ref BastionSecurityGroup
279-
IpProtocol: tcp
280-
ToPort: 22
281-
FromPort: 22
282-
DestinationSecurityGroupId: !Ref AppSecurityGroup
283-
284266
BastionSecurityGroupToPostgreSqlDbEgress:
285267
Type: AWS::EC2::SecurityGroupEgress
286268
Properties:

0 commit comments

Comments
 (0)