Files
opentf/website/source/docs/providers/aws/d/cloudformation_stack.html.markdown
Clint a3ae38d1bb docs: Update AWS Data Source docs to have HCL formatted examples (#13467)
* docs: update AWS examples. Disntinguish between alb and alb listener datasource

* more hcl highlighting

* more hcl

* fix missing end quote in docs

* docs: finish updates to AWS data source highlights

Also updates layout to distinguish some resources
2017-04-07 10:54:28 -05:00

1.5 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
aws AWS: aws_cloudformation_stack docs-aws-datasource-cloudformation-stack Provides metadata of a CloudFormation stack (e.g. outputs)

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:

  • name - (Required) The name of the stack

Attributes Reference

The following attributes are exported:

  • capabilities - A list of capabilities
  • description - Description of the stack
  • disable_rollback - Whether the rollback of the stack is disabled when stack creation fails
  • notification_arns - A list of SNS topic ARNs to publish stack related events
  • outputs - A map of outputs from the stack.
  • parameters - A map of parameters that specify input parameters for the stack.
  • tags - A map of tags associated with this stack.
  • template_body - Structure containing the template body.
  • iam_role_arn - The ARN of the IAM role used to create the stack.
  • timeout_in_minutes - The amount of time that can pass before the stack status becomes CREATE_FAILED