-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Open
Labels
new-data-sourceIntroduces a new data source.Introduces a new data source.service/snsIssues and PRs that pertain to the sns service.Issues and PRs that pertain to the sns service.
Description
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
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.*"
}
References
- https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/sns_topic
- https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_role
- https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_roles
Would you like to implement a fix?
None
ricardoleal
Metadata
Metadata
Assignees
Labels
new-data-sourceIntroduces a new data source.Introduces a new data source.service/snsIssues and PRs that pertain to the sns service.Issues and PRs that pertain to the sns service.