Similar to aws_iam_roles which is a plural of aws_iam_role, it would be nice to have the plural of aws_sns_topic as aws_sns_topics so I can take advantage of the name_regex field
The root issue is that SNS topics generated from cloudformation stacks have randomized suffixes and it would be nice to grab these automatically using a data source in terraform when the SNS topic needs to be reused.
Requested Resource(s) and/or Data Source(s)
aws_sns_topics
Potential Terraform Configuration
data "aws_sns_topics" "example" {
name_regex = "an_example_topic.*"
}
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.
Description
Similar to aws_iam_roles which is a plural of aws_iam_role, it would be nice to have the plural of aws_sns_topic as aws_sns_topics so I can take advantage of the
name_regex
fieldThe root issue is that SNS topics generated from cloudformation stacks have randomized suffixes and it would be nice to grab these automatically using a data source in terraform when the SNS topic needs to be reused.
Requested Resource(s) and/or Data Source(s)
Potential Terraform Configuration
References
Would you like to implement a fix?
None