AWSTemplateFormatVersion: '2010-09-09'

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

Conditions:
  UseProdCondition:
    !Equals [!Ref EnvironmentType, "prod"]

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