FEATURES PRICING ABOUT DOCS LOGIN

aws_cloudformation_stack

The CloudFormation Stack data source allows access to stack outputs and other useful data including the template body.

Example Usage

data "aws_cloudformation_stack" "network" {
    name = "my-network-stack"
}

resource "aws_instance" "web" {
    ami = "ami-abb07bcb"
    instance_type = "t1.micro"
    subnet_id = "${data.aws_cloudformation_stack.network.outputs["SubnetId"]}"
    tags {
        Name = "HelloWorld"
    }
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:


See the source of this document at Terraform.io

REQUEST A DEMO