Skip to content

Instantly share code, notes, and snippets.

@nicusX
Last active August 13, 2016 16:19
Show Gist options
  • Save nicusX/dc53a58e191ef7da523f978538dbd159 to your computer and use it in GitHub Desktop.
Save nicusX/dc53a58e191ef7da523f978538dbd159 to your computer and use it in GitHub Desktop.
resource "aws_instance" "etcd" {
count = 3
ami = "ami-1967056a" // Unbuntu 16.04 LTS HVM, EBS-SSD
instance_type = "t2.micro"
subnet_id = "${aws_subnet.kubernetes.id}"
private_ip = "${cidrhost("10.43.0.0/16", 10 + count.index)}"
associate_public_ip_address = true
availability_zone = "eu-west-1a"
vpc_security_group_ids = ["${aws_security_group.kubernetes.id}"]
key_name = "my-keypair"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment