Skip to content

[New]: data source plural of sns topic: aws_sns_topics #39668

@nitrocode

Description

@nitrocode

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

Would you like to implement a fix?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    new-data-sourceIntroduces a new data source.service/snsIssues and PRs that pertain to the sns service.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions