Skip to content

Commit

Permalink
Update ec2-with-bootstrapping.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
nmagee authored Oct 8, 2024
1 parent 5dc8bd9 commit 701182c
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions ec2/cloudformation/ec2-with-bootstrapping.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
AWSTemplateFormatVersion: 2010-09-09
Description: >-
AWS CloudFormation template: This template builds an EC2 instance attached to
an elastic IP address, and installs some basic software upon creation.
an elastic IP address, and installs some basic software upon creation. Homed
to primary UVA CIDR address blocks.
Parameters:
InstanceType:
Description: EC2 instance type
Expand All @@ -18,14 +19,6 @@ Parameters:
Description: Name of an existing EC2 KeyPair to enable SSH access to the instances
Type: 'AWS::EC2::KeyPair::KeyName'
ConstraintDescription: must be the name of an existing EC2 KeyPair.
SSHLocation:
Description: The off-campus IP address range to SSH to the EC2 instances. UVA Campus is automatically granted access.
Type: String
MinLength: '9'
MaxLength: '18'
Default: 1.2.3.4/32
AllowedPattern: '(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})/(\d{1,2})'
ConstraintDescription: Must be a valid IP CIDR range of the form x.x.x.x/x.

Resources:

Expand Down Expand Up @@ -69,10 +62,6 @@ Resources:
Properties:
GroupDescription: Enable SSH access
SecurityGroupIngress:
- IpProtocol: tcp
FromPort: '22'
ToPort: '22'
CidrIp: !Ref SSHLocation
- IpProtocol: tcp
FromPort: '22'
ToPort: '22'
Expand Down

0 comments on commit 701182c

Please sign in to comment.