Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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