Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Resources:
- MyInstance:
- Type: 'AWS::EC2::Instance'
- Properties:
- AvailabilityZone: eu-west-1a
- ImageId:
- Ref: ImageId
- KeyName: !Ref KeyName
- InstanceType:
- Ref: InstanceType
- SubnetId: !Ref SubnetId
- SecurityGroupIds: !Ref SecurityGroupIds
- Tags:
- - Key: Name
- Value:
- Ref: InstanceName
- - Key: Environment
- Value:
- Ref: Environment
- BlockDeviceMappings:
- - DeviceName: /dev/sda1
- Ebs:
- VolumeType:
- Ref: VolumeType
- VolumeSize:
- Ref: VolumeSize
- Parameters:
- InstanceType:
- Type: String
- Default: t2.micro
- AllowedValues:
- - t2.micro
- - t2.small
- - t2.medium
- Description: Enter t2.micro, t2.small, or t2.medium. Default is t2.micro.
- Environment:
- Type: String
- Default: dev
- AllowedValues:
- - dev
- - test
- - prod
- Description: Tags
- InstanceName:
- Type: String
- ImageId:
- Type: String
- AllowedValues:
- - ami-00035f41c82244dab
- - centos-7.6-plain-x86_64-181207_14-disk001-6f5e98a1-bc66-4b6a-a37d-efb4b2472f8a-ami-0372f888c4e669f49.4
- SecurityGroupIds:
- Type: List<AWS::EC2::SecurityGroup::Id>
- KeyName:
- Type: AWS::EC2::KeyPair::KeyName
- SubnetId:
- Type: AWS::EC2::Subnet::Id
- VolumeSize:
- Type: Number
- MinValue: 8
- MaxValue: 100
- VolumeType:
- Type: String
- Default: gp2
- AllowedValues:
- - gp2
- - st1
- - io1
- - sc1
- Description: gp2 = SSD, st1 = HDD, io1 = IOPS SSD, sc1 = Cold HDD
Add Comment
Please, Sign In to add comment