AWSTemplateFormatVersion: '2010-09-09'

Parameters:
  EnvironmentType:
    Type: String
    Description: Stage, prod or dev for this instance

Conditions:
  UseProdCondition:
    !Ref EnvironmentType

Resources:
  Instance:
    Type: AWS::EC2::Instance
    Properties:
      SecurityGroupIds:
      - "sg-123"
      SubnetId: "subnet-aaaaa"
      InstanceType: 't1.micro'
      AvailabilityZone: "eu-west-1"
      ImageId: "ami-aaaaaaa"
      Tags:
      - Key: environment
        Value: p