<commit_before>{
  "AWSTemplateFormatVersion": "2010-09-09",
  "Parameters" : {
    "KeyName": {
      "Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance",
      "Type": "AWS::EC2::KeyPair::KeyName", 
	"Default": "stackato",
      "ConstraintDescription" : "must be the name of an existing EC2 KeyPair."
    },
    "SSLCertificateId" : {
      "Description" : "SSL Certificate Id to be used for SSL traffic",
      "Type" : "String"
    },
    "NatInstanceType" : {
      "Description" : "Instance type of NAT hosts",
      "Type" : "String",
      "Default" : "t2.micro"
    },
    "BastionInstanceType" : {
      "Description" : "Instance type of Bastion hosts",
      "Type" : "String",
      "Default" : "t2.micro"
    },
    "StackatoInstanceType" : {
      "Description" : "Instance type of Stackato hosts",
      "Type" : "String",
      "Default" : "m3.medium"
    }
  },

  "Mappings" : {
    "AvailabilityZones" : {
        "eu-west-1"     : { "Zone1" : "eu-west-1a", "Zone2" : "eu-west-1b" },
        "eu-central-1"  : { "Zone1" : "eu-central-1a", "Zone2" : "eu-central-1b" }
    },

    "AWSInstanceType2Arch" : {
      "t1.micro"    : { "Arch" : "PV64"   },
      "t2.micro"    : { "Arch" : "HVM64"  },
      "t2.small"    : { "Arch" : "HVM64"  },
      "t2.medium"   : { "Arch" : "HVM64"  },
      "m1.small"    : { "Arch" : "PV64"   },
      "m1.medium"   : { "Arch" : "PV64"   },
      "m1.large"    : { "Arch" : "PV64"   },
      "m1.xlarge"   : { "Arch" : "PV64"   },
      "m2.xlarge"   : { "Arch" : "PV64"   },
      "m2.2xlarge"  : { "Arch" : "PV64"   },
      "m2.4xlarge"  : { "Arch" : "PV64"   },
      "m3.medium"   : { "Arch" : "HVM64"  },
      "m3.large"    : { "Arch" : "HVM64"  },
      "m3.xlarge"   : { "Arch" : "HVM64"  },
      "m3.2xlarge"  : { "Arch" : "HVM64"  },
      "c1.medium"   : { "Arch" : "PV64"   },
      "c1.xlarge"   : { "Arch" : "PV64"   },
      "c3.large"    : { "Arch" : "HVM64"  },
      "c3.xlarge"   : { "Arch" : "HVM64"  },
      "c3.2xlarge"  : { "Arch" : "HVM64"  },
      "c3.4xlarge"  : { "Arch" : "HVM64"  },
      "c3.8xlarge"  : { "Arch" : "HVM64"  },
      "g2.2xlarge"  : { "Arch" : "HVMG2"  },
      "r3.large"    : { "Arch" : "HVM64"  },
      "r3.xlarge"   : { "Arch" : "HVM64"  },
      "r3.2xlarge"  : { "Arch" : "HVM64"  },
      "r3.4xlarge"  : { "Arch" : "HVM64"  },
      "r3.8xlarge"  : { "Arch" : "HVM64"  },
      "i2.xlarge"   : { "Arch" : "HVM64"  },
      "i2.2xlarge"  : { "Arch" : "HVM64"  },
      "i2.4xlarge"  : { "Arch" : "HVM64"  },
      "i2.8xlarge"  : { "Arch" : "HVM64"  },
      "hi1.4xlarge" : { "Arch" : "HVM64"  },
      "hs1.8xlarge" : { "Arch" : "HVM64"  },
      "cr1.8xlarge" : { "Arch" : "HVM64"  },
      "cc2.8xlarge" : { "Arch" : "HVM64"  }
    },

    "AWSRegionNatAMI" : {
	"ap-northeast-1" : { "HVM64" :  "ami-55c29e54" },
	"ap-southeast-2" : { "HVM64" :  "ami-996402a3" },
	"eu-central-1" : { "HVM64" :  "ami-204c7a3d" },
	"eu-west-1" : { "HVM64" :  "ami-3760b040" },
	"sa-east-1" : { "HVM64" :  "ami-b972dba4" },
	"us-east-1" : { "HVM64" :  "ami-4c9e4b24" },
	"us-west-1" : { "HVM64" :  "ami-2b2b296e" },
	"us-west-2" : { "HVM64" :  "ami-bb69128b" }
    },

    "AWSRegionBastionAMI" : {
	"ap-northeast-1" : { "HVM64" :  "ami-4985b048"},
	"ap-southeast-1" : { "HVM64" :  "ami-ac5c7afe"},
	"ap-southeast-2" : { "HVM64" :  "ami-63f79559"},
	"eu-central-1" : { "HVM64" :  "ami-b43503a9"},
	"eu-west-1" : { "HVM64" :  "ami-6e7bd919"},
	"sa-east-1" : { "HVM64" :  "ami-8737829a"},
	"us-east-1" : { "HVM64" :  "ami-b66ed3de"},
	"us-west-1" : { "HVM64" :  "ami-4b6f650e"},
	"us-west-2" : { "HVM64" :  "ami-b5a7ea85"}
    },

    "AWSRegionStackatoAMI" : {
	"ap-southeast-1" :	{ "HVM64" : "ami-97ffd0c5" },
	"ap-southeast-2" :	{ "HVM64" : "ami-d53e55ef" },
	"eu-central-1" :	{ "HVM64" : "ami-74dded69" },
	"eu-west-1" :	{ "HVM64" : "ami-221ca555" },
	"us-east-1" :	{ "HVM64" : "ami-429dff2a" },
	"us-west-2" :	{ "HVM64" : "ami-9b7b2bab" }
    }
  },

  "Resources": {
    "DutchDevopsVPC": {
    "Type": "AWS::EC2::VPC",
      "Properties": {
        "CidrBlock": "10.0.0.0/16",
        "InstanceTenancy": "default",
        "EnableDnsSupport": "true",
        "EnableDnsHostnames": "true",
        "Tags": [
          {
            "Key": "Name",
            "Value": { "Fn::Join" : [ "", [ { "Ref" : "KeyName" } , "-vpc" ] ] }
          }
        ]
      }
    },
    "PublicSubnetAZ1": {
      "Type": "AWS::EC2::Subnet",
      "Properties": {
        "CidrBlock": "10.0.1.0/24",
        "AvailabilityZone":   { "Fn::FindInMap" : [ "AvailabilityZones", { "Ref" : "AWS::Region" }, "Zone1" ] },
        "VpcId": {
          "Ref": "DutchDevopsVPC"
        },
        "Tags": [
          {
            "Key": "Name",
            "Value": { "Fn::Join" : [ "", [ { "Ref" : "KeyName" } , "-public-az-1" ] ] }
          }
        ]
      }
    },
    "PublicSubnetAZ2": {
      "Type": "AWS::EC2::Subnet",
      "Properties": {
        "CidrBlock": "10.0.2.0/24",
        "AvailabilityZone":   { "Fn::FindInMap" : [ "AvailabilityZones", { "Ref" : "AWS::Region" }, "Zone2" ] },
        "VpcId": {
          "Ref": "DutchDevopsVPC"
        },
        "Tags": [
          {
            "Key": "Name",
            "Value": { "Fn::Join" : [ "", [ { "Ref" : "KeyName" } , "-public-az-2" ] ] }
          }
        ]
      }
    },
    "PrivateSubnetAZ1": {
      "Type": "AWS::EC2::Subnet",
      "Properties": {
        "CidrBlock": "10.0.3.0/24",
        "AvailabilityZone":   { "Fn::FindInMap" : [ "AvailabilityZones", { "Ref" : "AWS::Region" }, "Zone1" ] },
        "VpcId": {
          "Ref": "DutchDevopsVPC"
        },
        "Tags": [
          {
            "Key": "Name",
            "Value": { "Fn::Join" : [ "", [ { "Ref" : "KeyName" } , "-private-az-1" ] ] }
          }
        ]
      }
    },
    "PrivateSubnetAZ2": {
      "Type": "AWS::EC2::Subnet",
      "Properties": {
        "CidrBlock": "10.0.4.0/24",
        "AvailabilityZone":   { "Fn::FindInMap" : [ "AvailabilityZones", { "Ref" : "AWS::Region" }, "Zone2" ] },
        "VpcId": {
          "Ref": "DutchDevopsVPC"
        },
        "Tags": [
          {
            "Key": "Name",
            "Value": { "Fn::Join" : [ "", [ { "Ref" : "KeyName" } , "-private-az-2" ] ] }
          }
        ]
      }
    },
    "InternetGateway": {
      "Type": "AWS::EC2::InternetGateway",
      "Properties": {
        "Tags": [
          {
            "Key": "Name",
            "Value": { "Fn::Join" : [ "", [ { "Ref" : "KeyName" } , "-igw" ] ] }
          }
        ]
      }
    },
    "DHPOptions": {
      "Type": "AWS::EC2::DHCPOptions",
      "Properties": {
        "DomainName": "eu-central-1.compute.internal",
        "DomainNameServers": [
          "AmazonProvidedDNS"
        ]
      }
    },
    "DutchDevopsNetworkACL": {
      "Type": "AWS::EC2::NetworkAcl",
      "Properties": {
        "VpcId": {
          "Ref": "DutchDevopsVPC"
        },
        "Tags": [
          {
            "Key": "Name",
            "Value": { "Fn::Join" : [ "", [ { "Ref" : "KeyName" } , "-network-acl" ] ] }
          }
        ]
      }
    },
    "rtb3a5ba853": {
      "Type": "AWS::EC2::RouteTable",
      "Properties": {
        "VpcId": {
          "Ref": "DutchDevopsVPC"
        },
        "Tags": [
          {
            "Key": "Name",
            "Value": { "Fn::Join" : [ "", [ { "Ref" : "KeyName" } , "-public-rt" ] ] }
          }
        ]
      }
    },
    "rtb1f47b476": {
      "Type": "AWS::EC2::RouteTable",
      "Properties": {
        "VpcId": {
          "Ref": "DutchDevopsVPC"
        },
        "Tags": [
          {
            "Key": "Name",
            "Value": { "Fn::Join" : [ "", [ { "Ref" : "KeyName" } , "-private-rt-az-2" ] ] }
          }
        ]
      }
    },
    "rtb135ba87a": {
      "Type": "AWS::EC2::RouteTable",
      "Properties": {
        "VpcId": {
          "Ref": "DutchDevopsVPC"
        },
        "Tags": [
          {
            "Key": "Name",
            "Value": { "Fn::Join" : [ "", [ { "Ref" : "KeyName" } , "-private-rt-az-1" ] ] }
          }
        ]
      }
    },
    "StudentLoadBalancer": {
      "Type": "AWS::ElasticLoadBalancing::LoadBalancer",
      "Properties": {
        "Subnets": [
          {
            "Ref": "PublicSubnetAZ1"
          },
          {
            "Ref": "PublicSubnetAZ2"
          }
        ],
        "HealthCheck": {
          "HealthyThreshold": "2",
          "Interval": "5",
          "Target": "TCP:80",
          "Timeout": "2",
          "UnhealthyThreshold": "2"
        },
{% if options.with_test_instances %}
        "Instances": [
          {
            "Ref": "TestInstanceAZ1"
          },
          {
            "Ref": "TestInstanceAZ2"
          }
        ],
{% endif %}
        "SecurityGroups": [
          {
            "Ref": "sgstudent1loadbalancersg"
          }
        ],
        "Listeners": [
          {
            "InstancePort": "80",
            "LoadBalancerPort": "80",
            "Protocol": "HTTP",
            "InstanceProtocol": "HTTP"
          },
          {
            "InstancePort": "80",
            "LoadBalancerPort": "443",
            "Protocol": "HTTPS",
            "InstanceProtocol": "HTTP",
            "SSLCertificateId": "arn:aws:iam::233211978703:server-certificate/xita.xebia.dynamic-dns.net",
            "PolicyNames": [
               "ELBSecurityPolicy-2014-10"
            ]
          }
        ]
      }
    },
    "BastionEIP": {
      "Type": "AWS::EC2::EIP",
      "DependsOn": [
        "gw1"
      ],
      "Properties": {
        "Domain": "vpc",
        "InstanceId": {
          "Ref": "BastionHost"
        }
      }
    },
    "BastionHost": {
      "Type": "AWS::EC2::Instance",
      "Properties": {
        "DisableApiTermination": "FALSE",
	"ImageId" : { "Fn::FindInMap" : [ "AWSRegionBastionAMI", { "Ref" : "AWS::Region" },
                          { "Fn::FindInMap" : [ "AWSInstanceType2Arch", { "Ref" : "BastionInstanceType" }, "Arch" ] } ] },
        "InstanceType": { "Ref" : "BastionInstanceType" },
        "KeyName": { "Ref" : "KeyName" },
        "Monitoring": "false",
        "Tags": [<commit_msg>did not use proper SSL certificate<commit_after>{
  "AWSTemplateFormatVersion": "2010-09-09",
  "Parameters" : {
    "KeyName": {
      "Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance",
      "Type": "AWS::EC2::KeyPair::KeyName", 
	"Default": "stackato",
      "ConstraintDescription" : "must be the name of an existing EC2 KeyPair."
    },
    "SSLCertificateId" : {
      "Description" : "SSL Certificate Id to be used for SSL traffic",
      "Type" : "String"
    },
    "NatInstanceType" : {
      "Description" : "Instance type of NAT hosts",
      "Type" : "String",
      "Default" : "t2.micro"
    },
    "BastionInstanceType" : {
      "Description" : "Instance type of Bastion hosts",
      "Type" : "String",
      "Default" : "t2.micro"
    },
    "StackatoInstanceType" : {
      "Description" : "Instance type of Stackato hosts",
      "Type" : "String",
      "Default" : "m3.medium"
    }
  },

  "Mappings" : {
    "AvailabilityZones" : {
        "eu-west-1"     : { "Zone1" : "eu-west-1a", "Zone2" : "eu-west-1b" },
        "eu-central-1"  : { "Zone1" : "eu-central-1a", "Zone2" : "eu-central-1b" }
    },

    "AWSInstanceType2Arch" : {
      "t1.micro"    : { "Arch" : "PV64"   },
      "t2.micro"    : { "Arch" : "HVM64"  },
      "t2.small"    : { "Arch" : "HVM64"  },
      "t2.medium"   : { "Arch" : "HVM64"  },
      "m1.small"    : { "Arch" : "PV64"   },
      "m1.medium"   : { "Arch" : "PV64"   },
      "m1.large"    : { "Arch" : "PV64"   },
      "m1.xlarge"   : { "Arch" : "PV64"   },
      "m2.xlarge"   : { "Arch" : "PV64"   },
      "m2.2xlarge"  : { "Arch" : "PV64"   },
      "m2.4xlarge"  : { "Arch" : "PV64"   },
      "m3.medium"   : { "Arch" : "HVM64"  },
      "m3.large"    : { "Arch" : "HVM64"  },
      "m3.xlarge"   : { "Arch" : "HVM64"  },
      "m3.2xlarge"  : { "Arch" : "HVM64"  },
      "c1.medium"   : { "Arch" : "PV64"   },
      "c1.xlarge"   : { "Arch" : "PV64"   },
      "c3.large"    : { "Arch" : "HVM64"  },
      "c3.xlarge"   : { "Arch" : "HVM64"  },
      "c3.2xlarge"  : { "Arch" : "HVM64"  },
      "c3.4xlarge"  : { "Arch" : "HVM64"  },
      "c3.8xlarge"  : { "Arch" : "HVM64"  },
      "g2.2xlarge"  : { "Arch" : "HVMG2"  },
      "r3.large"    : { "Arch" : "HVM64"  },
      "r3.xlarge"   : { "Arch" : "HVM64"  },
      "r3.2xlarge"  : { "Arch" : "HVM64"  },
      "r3.4xlarge"  : { "Arch" : "HVM64"  },
      "r3.8xlarge"  : { "Arch" : "HVM64"  },
      "i2.xlarge"   : { "Arch" : "HVM64"  },
      "i2.2xlarge"  : { "Arch" : "HVM64"  },
      "i2.4xlarge"  : { "Arch" : "HVM64"  },
      "i2.8xlarge"  : { "Arch" : "HVM64"  },
      "hi1.4xlarge" : { "Arch" : "HVM64"  },
      "hs1.8xlarge" : { "Arch" : "HVM64"  },
      "cr1.8xlarge" : { "Arch" : "HVM64"  },
      "cc2.8xlarge" : { "Arch" : "HVM64"  }
    },

    "AWSRegionNatAMI" : {
	"ap-northeast-1" : { "HVM64" :  "ami-55c29e54" },
	"ap-southeast-2" : { "HVM64" :  "ami-996402a3" },
	"eu-central-1" : { "HVM64" :  "ami-204c7a3d" },
	"eu-west-1" : { "HVM64" :  "ami-3760b040" },
	"sa-east-1" : { "HVM64" :  "ami-b972dba4" },
	"us-east-1" : { "HVM64" :  "ami-4c9e4b24" },
	"us-west-1" : { "HVM64" :  "ami-2b2b296e" },
	"us-west-2" : { "HVM64" :  "ami-bb69128b" }
    },

    "AWSRegionBastionAMI" : {
	"ap-northeast-1" : { "HVM64" :  "ami-4985b048"},
	"ap-southeast-1" : { "HVM64" :  "ami-ac5c7afe"},
	"ap-southeast-2" : { "HVM64" :  "ami-63f79559"},
	"eu-central-1" : { "HVM64" :  "ami-b43503a9"},
	"eu-west-1" : { "HVM64" :  "ami-6e7bd919"},
	"sa-east-1" : { "HVM64" :  "ami-8737829a"},
	"us-east-1" : { "HVM64" :  "ami-b66ed3de"},
	"us-west-1" : { "HVM64" :  "ami-4b6f650e"},
	"us-west-2" : { "HVM64" :  "ami-b5a7ea85"}
    },

    "AWSRegionStackatoAMI" : {
	"ap-southeast-1" :	{ "HVM64" : "ami-97ffd0c5" },
	"ap-southeast-2" :	{ "HVM64" : "ami-d53e55ef" },
	"eu-central-1" :	{ "HVM64" : "ami-74dded69" },
	"eu-west-1" :	{ "HVM64" : "ami-221ca555" },
	"us-east-1" :	{ "HVM64" : "ami-429dff2a" },
	"us-west-2" :	{ "HVM64" : "ami-9b7b2bab" }
    }
  },

  "Resources": {
    "DutchDevopsVPC": {
    "Type": "AWS::EC2::VPC",
      "Properties": {
        "CidrBlock": "10.0.0.0/16",
        "InstanceTenancy": "default",
        "EnableDnsSupport": "true",
        "EnableDnsHostnames": "true",
        "Tags": [
          {
            "Key": "Name",
            "Value": { "Fn::Join" : [ "", [ { "Ref" : "KeyName" } , "-vpc" ] ] }
          }
        ]
      }
    },
    "PublicSubnetAZ1": {
      "Type": "AWS::EC2::Subnet",
      "Properties": {
        "CidrBlock": "10.0.1.0/24",
        "AvailabilityZone":   { "Fn::FindInMap" : [ "AvailabilityZones", { "Ref" : "AWS::Region" }, "Zone1" ] },
        "VpcId": {
          "Ref": "DutchDevopsVPC"
        },
        "Tags": [
          {
            "Key": "Name",
            "Value": { "Fn::Join" : [ "", [ { "Ref" : "KeyName" } , "-public-az-1" ] ] }
          }
        ]
      }
    },
    "PublicSubnetAZ2": {
      "Type": "AWS::EC2::Subnet",
      "Properties": {
        "CidrBlock": "10.0.2.0/24",
        "AvailabilityZone":   { "Fn::FindInMap" : [ "AvailabilityZones", { "Ref" : "AWS::Region" }, "Zone2" ] },
        "VpcId": {
          "Ref": "DutchDevopsVPC"
        },
        "Tags": [
          {
            "Key": "Name",
            "Value": { "Fn::Join" : [ "", [ { "Ref" : "KeyName" } , "-public-az-2" ] ] }
          }
        ]
      }
    },
    "PrivateSubnetAZ1": {
      "Type": "AWS::EC2::Subnet",
      "Properties": {
        "CidrBlock": "10.0.3.0/24",
        "AvailabilityZone":   { "Fn::FindInMap" : [ "AvailabilityZones", { "Ref" : "AWS::Region" }, "Zone1" ] },
        "VpcId": {
          "Ref": "DutchDevopsVPC"
        },
        "Tags": [
          {
            "Key": "Name",
            "Value": { "Fn::Join" : [ "", [ { "Ref" : "KeyName" } , "-private-az-1" ] ] }
          }
        ]
      }
    },
    "PrivateSubnetAZ2": {
      "Type": "AWS::EC2::Subnet",
      "Properties": {
        "CidrBlock": "10.0.4.0/24",
        "AvailabilityZone":   { "Fn::FindInMap" : [ "AvailabilityZones", { "Ref" : "AWS::Region" }, "Zone2" ] },
        "VpcId": {
          "Ref": "DutchDevopsVPC"
        },
        "Tags": [
          {
            "Key": "Name",
            "Value": { "Fn::Join" : [ "", [ { "Ref" : "KeyName" } , "-private-az-2" ] ] }
          }
        ]
      }
    },
    "InternetGateway": {
      "Type": "AWS::EC2::InternetGateway",
      "Properties": {
        "Tags": [
          {
            "Key": "Name",
            "Value": { "Fn::Join" : [ "", [ { "Ref" : "KeyName" } , "-igw" ] ] }
          }
        ]
      }
    },
    "DHPOptions": {
      "Type": "AWS::EC2::DHCPOptions",
      "Properties": {
        "DomainName": "eu-central-1.compute.internal",
        "DomainNameServers": [
          "AmazonProvidedDNS"
        ]
      }
    },
    "DutchDevopsNetworkACL": {
      "Type": "AWS::EC2::NetworkAcl",
      "Properties": {
        "VpcId": {
          "Ref": "DutchDevopsVPC"
        },
        "Tags": [
          {
            "Key": "Name",
            "Value": { "Fn::Join" : [ "", [ { "Ref" : "KeyName" } , "-network-acl" ] ] }
          }
        ]
      }
    },
    "rtb3a5ba853": {
      "Type": "AWS::EC2::RouteTable",
      "Properties": {
        "VpcId": {
          "Ref": "DutchDevopsVPC"
        },
        "Tags": [
          {
            "Key": "Name",
            "Value": { "Fn::Join" : [ "", [ { "Ref" : "KeyName" } , "-public-rt" ] ] }
          }
        ]
      }
    },
    "rtb1f47b476": {
      "Type": "AWS::EC2::RouteTable",
      "Properties": {
        "VpcId": {
          "Ref": "DutchDevopsVPC"
        },
        "Tags": [
          {
            "Key": "Name",
            "Value": { "Fn::Join" : [ "", [ { "Ref" : "KeyName" } , "-private-rt-az-2" ] ] }
          }
        ]
      }
    },
    "rtb135ba87a": {
      "Type": "AWS::EC2::RouteTable",
      "Properties": {
        "VpcId": {
          "Ref": "DutchDevopsVPC"
        },
        "Tags": [
          {
            "Key": "Name",
            "Value": { "Fn::Join" : [ "", [ { "Ref" : "KeyName" } , "-private-rt-az-1" ] ] }
          }
        ]
      }
    },
    "StudentLoadBalancer": {
      "Type": "AWS::ElasticLoadBalancing::LoadBalancer",
      "Properties": {
        "Subnets": [
          {
            "Ref": "PublicSubnetAZ1"
          },
          {
            "Ref": "PublicSubnetAZ2"
          }
        ],
        "HealthCheck": {
          "HealthyThreshold": "2",
          "Interval": "5",
          "Target": "TCP:80",
          "Timeout": "2",
          "UnhealthyThreshold": "2"
        },
{% if options.with_test_instances %}
        "Instances": [
          {
            "Ref": "TestInstanceAZ1"
          },
          {
            "Ref": "TestInstanceAZ2"
          }
        ],
{% endif %}
        "SecurityGroups": [
          {
            "Ref": "sgstudent1loadbalancersg"
          }
        ],
        "Listeners": [
          {
            "InstancePort": "80",
            "LoadBalancerPort": "80",
            "Protocol": "HTTP",
            "InstanceProtocol": "HTTP"
          },
          {
            "InstancePort": "80",
            "LoadBalancerPort": "443",
            "Protocol": "HTTPS",
            "InstanceProtocol": "HTTP",
            "SSLCertificateId": { "Ref", "SSLCertificateId" },
            "PolicyNames": [
               "ELBSecurityPolicy-2014-10"
            ]
          }
        ]
      }
    },
    "BastionEIP": {
      "Type": "AWS::EC2::EIP",
      "DependsOn": [
        "gw1"
      ],
      "Properties": {
        "Domain": "vpc",
        "InstanceId": {
          "Ref": "BastionHost"
        }
      }
    },
    "BastionHost": {
      "Type": "AWS::EC2::Instance",
      "Properties": {
        "DisableApiTermination": "FALSE",
	"ImageId" : { "Fn::FindInMap" : [ "AWSRegionBastionAMI", { "Ref" : "AWS::Region" },
                          { "Fn::FindInMap" : [ "AWSInstanceType2Arch", { "Ref" : "BastionInstanceType" }, "Arch" ] } ] },
        "InstanceType": { "Ref" : "BastionInstanceType" },
        "KeyName": { "Ref" : "KeyName" },
        "Monitoring": "false",
        "Tags": [
{'fraction_non_alphanumeric': 0.2228664079005552, 'fraction_numerical': 0.04382646292929789, 'mean_word_length': 1.6742872158717645, 'pattern_counts': {'":': 282, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 10, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7231644', 'n_tokens_mistral': 8597, 'n_tokens_neox': 8160, 'n_words': 1112}