Guest User

Untitled

a guest
Feb 17th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. Resources:
  2. MyInstance:
  3. Type: 'AWS::EC2::Instance'
  4. Properties:
  5. AvailabilityZone: eu-west-1a
  6. ImageId:
  7. Ref: ImageId
  8. KeyName: !Ref KeyName
  9. InstanceType:
  10. Ref: InstanceType
  11. SubnetId: !Ref SubnetId
  12. SecurityGroupIds: !Ref SecurityGroupIds
  13. Tags:
  14. - Key: Name
  15. Value:
  16. Ref: InstanceName
  17. - Key: Environment
  18. Value:
  19. Ref: Environment
  20. BlockDeviceMappings:
  21. - DeviceName: /dev/sda1
  22. Ebs:
  23. VolumeType:
  24. Ref: VolumeType
  25. VolumeSize:
  26. Ref: VolumeSize
  27. Parameters:
  28. InstanceType:
  29. Type: String
  30. Default: t2.micro
  31. AllowedValues:
  32. - t2.micro
  33. - t2.small
  34. - t2.medium
  35. Description: Enter t2.micro, t2.small, or t2.medium. Default is t2.micro.
  36. Environment:
  37. Type: String
  38. Default: dev
  39. AllowedValues:
  40. - dev
  41. - test
  42. - prod
  43. Description: Tags
  44. InstanceName:
  45. Type: String
  46. ImageId:
  47. Type: String
  48. AllowedValues:
  49. - ami-00035f41c82244dab
  50. - centos-7.6-plain-x86_64-181207_14-disk001-6f5e98a1-bc66-4b6a-a37d-efb4b2472f8a-ami-0372f888c4e669f49.4
  51. SecurityGroupIds:
  52. Type: List<AWS::EC2::SecurityGroup::Id>
  53. KeyName:
  54. Type: AWS::EC2::KeyPair::KeyName
  55. SubnetId:
  56. Type: AWS::EC2::Subnet::Id
  57. VolumeSize:
  58. Type: Number
  59. MinValue: 8
  60. MaxValue: 100
  61. VolumeType:
  62. Type: String
  63. Default: gp2
  64. AllowedValues:
  65. - gp2
  66. - st1
  67. - io1
  68. - sc1
  69. Description: gp2 = SSD, st1 = HDD, io1 = IOPS SSD, sc1 = Cold HDD
Add Comment
Please, Sign In to add comment