AWSTemplateFormatVersion: '2010-09-09'

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