Sha256: 1d7c5ee8a7049e8cedf664876988ef70374a091359ed79b41517edd61b828878

Contents?: true

Size: 1.08 KB

Versions: 16

Compression:

Stored size: 1.08 KB

Contents

data "aws_ami" "windows_ami" {
  most_recent = true

  filter {
    name   = "owner-alias"
    values = ["amazon"]
  }

  filter {
    name   = "name"
    values = ["Windows_Server-2016-English-Nano-Base-*"]
  }

  filter {
    name   = "architecture"
    values = ["x86_64"]
  }

  filter {
    name   = "virtualization-type"
    values = ["hvm"]
  }

  filter {
    name   = "block-device-mapping.volume-type"
    values = ["gp2"]
  }

  filter {
    name   = "image-type"
    values = ["machine"]
  }
}

resource "aws_instance" "windows_server_nano_ami" {
  count = 1

  ami           = "${data.aws_ami.windows_ami.id}"
  instance_type = "${var.aws_instance_type}"
  key_name      = "es-infrastructure"

  associate_public_ip_address = true

  subnet_id         = "subnet-11ac0174" # Planet Releng Public Subnet
  source_dest_check = false

  vpc_security_group_ids = [
    "sg-96274af3",
  ]

  tags {
    # ChefOps's AWS standard tags:
    X-Dept        = "EngServ"
    X-Contact     = "pwright"
    X-Production  = "false"
    X-Environment = "acceptance"
    X-Application = "mixlib-install"
  }
}

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mixlib-install-3.9.0 acceptance/.suites/windows-nano/terraform/application.tf
mixlib-install-3.8.0 acceptance/.suites/windows-nano/terraform/application.tf
mixlib-install-3.7.0 acceptance/.suites/windows-nano/terraform/application.tf
mixlib-install-3.6.0 acceptance/.suites/windows-nano/terraform/application.tf
mixlib-install-3.5.1 acceptance/.suites/windows-nano/terraform/application.tf
mixlib-install-3.5.0 acceptance/.suites/windows-nano/terraform/application.tf
mixlib-install-3.4.0 acceptance/windows-nano/terraform/application.tf
mixlib-install-3.3.4 acceptance/windows-nano/terraform/application.tf
mixlib-install-3.3.3 acceptance/windows-nano/terraform/application.tf
mixlib-install-3.3.2 acceptance/windows-nano/terraform/application.tf
mixlib-install-3.3.1 acceptance/windows-nano/terraform/application.tf
mixlib-install-3.3.0 acceptance/windows-nano/terraform/application.tf
mixlib-install-3.2.2 acceptance/windows-nano/terraform/application.tf
mixlib-install-3.2.1 acceptance/windows-nano/terraform/application.tf
mixlib-install-3.2.0 acceptance/windows-nano/terraform/application.tf
mixlib-install-3.1.0 acceptance/windows-nano/terraform/application.tf