Sha256: 63e6681ef3dcb9482e9a042b926feef66b69af6ab1713f362da8816d999588e0

Contents?: true

Size: 786 Bytes

Versions: 18

Compression:

Stored size: 786 Bytes

Contents

provider "aws" {
}

data "aws_ami" "ubuntu" {
  most_recent = true
  filter {
    name = "name"
    values = ["ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-*"]
  }
  filter {
    name = "virtualization-type"
    values = ["hvm"]
  }
  owners = ["099720109477"] # Canonical
}

resource "aws_instance" "ec2-host-web" {
  ami = "${data.aws_ami.ubuntu.id}"
  instance_type = "t2.nano"
  tags {
      Name = "ec2-host-web"
      Roles = "foo,web:test"
      Service = "ec2-host"
      Status = "reserve"
      Tags = "standby"
  }
}

resource "aws_instance" "ec2-host-db" {
  ami = "${data.aws_ami.ubuntu.id}"
  instance_type = "t2.nano"
  tags {
      Name = "ec2-host-db"
      Roles = "foo,db:test"
      Service = "ec2-host"
      Status = "active"
      Tags = "master"
  }
}

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
ec2-host-1.0.3 terraform.tf
ec2-host-1.0.2 terraform.tf
ec2-host-1.0.1 terraform.tf
ec2-host-1.0.0 terraform.tf
ec2-host-0.6.0 terraform.tf
ec2-host-0.5.9 terraform.tf
ec2-host-0.5.8 terraform.tf
ec2-host-0.5.7 terraform.tf
ec2-host-0.5.6 terraform.tf
ec2-host-0.5.5 terraform.tf
ec2-host-0.5.4 terraform.tf
ec2-host-0.5.3 terraform.tf
ec2-host-0.5.2 terraform.tf
ec2-host-0.5.1 terraform.tf
ec2-host-0.5.0 terraform.tf
ec2-host-0.4.2 terraform.tf
ec2-host-0.4.1 terraform.tf
ec2-host-0.4.0 terraform.tf