Terraform template - AWS instance

Problem this snippet solves:

Terraform template - AWS instance

Code :

resource "aws_instance" "f5" {
    ami = "ami-id"
    instance_type = "m3.xlarge"
    associate_public_ip_address = true
    private_ip = "10.0.0.21"
    availability_zone = "${aws_subnet.management.availability_zone}"
    subnet_id = "${aws_subnet.management.id}"
    security_groups = ["${aws_security_group.allow_all.id}"]
    vpc_security_group_ids = ["${aws_security_group.allow_all.id}"]
    #user_data = "${file("cloud-config.yaml")}"
    key_name = "key-name"
    root_block_device { delete_on_termination = true }
    tags {
        Name = "f5"
        License = "License"
    }
}
Published Sep 29, 2016
Version 1.0
No CommentsBe the first to comment