Data Source: aws_cloudformation_export

The CloudFormation Export data source allows access to stack exports specified in the Output section of the Cloudformation Template using the optional Export Property.

Example Usage

data "aws_cloudformation_export" "subnet_id" {
  name = "my:subnet_id:export"
}

resource "aws_instance" "web" {
  ami           = "ami-abb07bcb"
  instance_type = "t1.micro"
  subnet_id     = "${data.aws_cloudformation_export.subnet_id.value}"
}

Argument Reference

  • name - (Required) The name of the cross stack reference

Attributes Reference

The following attributes are exported:

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/d/cloudformation_export.html