Skip to content

Commit

Permalink
Use SSM to access App instances, not bastion.
Browse files Browse the repository at this point in the history
  • Loading branch information
glenngillen committed Dec 7, 2018
1 parent 11b9330 commit 0e6da27
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions templates/vpc.cfn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,6 @@ Resources:
FromPort: !Ref AppIngressPort
SourceSecurityGroupId: !Ref ELBSecurityGroup

AppSecurityGroupFromBastionIngress:
Type: AWS::EC2::SecurityGroupIngress # prevent security group circular references
Properties:
GroupId: !Ref AppSecurityGroup
IpProtocol: tcp
ToPort: 22
FromPort: 22
SourceSecurityGroupId: !Ref BastionSecurityGroup

BastionSecurityGroup:
Type: AWS::EC2::SecurityGroup
Properties:
Expand Down Expand Up @@ -272,15 +263,6 @@ Resources:
- Key: Name
Value: !Sub "${AWS::StackName}-BastionSecurityGroup"

BastionSecurityGroupToAppEgress:
Type: AWS::EC2::SecurityGroupEgress # prevent security group circular references
Properties:
GroupId: !Ref BastionSecurityGroup
IpProtocol: tcp
ToPort: 22
FromPort: 22
DestinationSecurityGroupId: !Ref AppSecurityGroup

BastionSecurityGroupToPostgreSqlDbEgress:
Type: AWS::EC2::SecurityGroupEgress
Properties:
Expand Down

0 comments on commit 0e6da27

Please sign in to comment.