Skip to content

Instantly share code, notes, and snippets.

@beisong7
Created December 12, 2023 01:21
Show Gist options
  • Save beisong7/4250ca8d3cdcb762448c4d3b9e77c324 to your computer and use it in GitHub Desktop.
Save beisong7/4250ca8d3cdcb762448c4d3b9e77c324 to your computer and use it in GitHub Desktop.
cloud formation ec2
AWSTemplateFormatVersion: "2010-09-09"
Description: A sample template
Resources:
Ec2CloudForm: #An inline comment
Type: "AWS::EC2::Instance"
Properties:
ImageId: "ami-06aa3f7caf3a30282" #Another comment -- This is a Linux AMI
InstanceType: t2.micro
KeyName: nvirginia
# BlockDeviceMappings:
# -
# DeviceName: /dev/sdm
# Ebs:
# VolumeType: io1
# Iops: 200
# DeleteOnTermination: false
# VolumeSize: 20
AvailabilityZone: "us-east-1a"
SecurityGroups:
- "default"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment