Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Data Source]: CloudFormation Stack Resource #32873

Open
jutley opened this issue Aug 6, 2023 · 1 comment
Open

[New Data Source]: CloudFormation Stack Resource #32873

jutley opened this issue Aug 6, 2023 · 1 comment
Labels
new-data-source Introduces a new data source. service/cloudformation Issues and PRs that pertain to the cloudformation service.

Comments

@jutley
Copy link

jutley commented Aug 6, 2023

Description

I'd like to use CloudFormation stack resources as a data source in order to retrieve the physical IDs for resources created via CloudFormation. Currently we can get stack exports, but we rarely use exports since they use a global namespace. CloudFormation's API already supports fetching resources for a stack using DescribeStackResourceWithContext.

Requested Resource(s) and/or Data Source(s)

aws_cloudformation_stack_resource

Potential Terraform Configuration

data "aws_cloudformation_stack_resource" "stack_resource" {
  stack = "an_example_stack"
  logical_resource_id = "an_example_logical_id"
}

References

https://docs.aws.amazon.com/sdk-for-go/api/service/cloudformation/#CloudFormation.DescribeStackResourceWithContext

Would you like to implement a fix?

No

@github-actions
Copy link

github-actions bot commented Aug 6, 2023

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/cloudformation Issues and PRs that pertain to the cloudformation service. label Aug 6, 2023
@jutley jutley changed the title [New Data Srouce]: CloudFormation Stack Resource [New Data Source]: CloudFormation Stack Resource Aug 6, 2023
@justinretzolk justinretzolk added the new-data-source Introduces a new data source. label Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-data-source Introduces a new data source. service/cloudformation Issues and PRs that pertain to the cloudformation service.
Projects
None yet
Development

No branches or pull requests

2 participants