forked from udacity/nd9991-c3-hello-world-exercise-solution
-
Notifications
You must be signed in to change notification settings - Fork 38
/
template.yml
24 lines (24 loc) · 800 Bytes
/
template.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Exercise - Rollback
AWSTemplateFormatVersion: 2010-09-09
Description: ND9991 C3 L4
Resources:
EC2Instance:
Type: 'AWS::EC2::Instance'
Properties:
SecurityGroups:
- !Ref InstanceSecurityGroup
# Change this, as applicable to you
KeyName: nd9990_keypair
# Change this, as applicable to you
# You may need to find out what instance types are available in your region - use https://cloud-images.ubuntu.com/locator/ec2/
ImageId: 'ami-083654bd07b5da81d'
InstanceType: t3.micro
InstanceSecurityGroup:
Type: 'AWS::EC2::SecurityGroup'
Properties:
GroupDescription: Enable SSH access via port 22
SecurityGroupIngress:
- IpProtocol: tcp
FromPort: '22'
ToPort: '22'
CidrIp: 0.0.0.0/0