Guest User

Untitled

a guest
Nov 23rd, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. Parameters:
  2. LargerInstance:
  3. Description: Whether a larger instance should be used
  4. Default: false
  5. Type: String
  6. AllowedValues: [true, false]
  7. Resources:
  8. EC2Instance:
  9.    Type: AWS::EC2::Instance
  10.    Properties:
  11.      InstanceType:
  12.        !If [UseLargerInstance, m4.large, t2.micro]
  13.      KeyName: 'default' # keypair must already exist
  14.      ImageId: ami-8c1be5f6 # AMI us-east-1
  15. Conditions:
  16. UseLargerInstance: !Equals [true, !Ref LargerInstance]
Add Comment
Please, Sign In to add comment