-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Data source for AWS Organizations account tagging #11511
Comments
Can definitely see massive use-cases for this - especially if we can get a list of accounts based on a tag. Potentially we could look at expanding AWS behaviour to allow applying SCP's based on a Tag which would be amazing! |
My use case for this capability is to store key information, per AWS account, that can be used to retrieve data from external systems (Terraform data source) to drive Terraform automation. As an example, if AWS account X hosts application system Y, the AWS Orgs Account tags should have an identifier for application system Y. This can be used to retrieve other critical information regarding cost allocations, availability goals, contact information, criticality rating, etc., which can in turn be used to drive other Terraform automation. In our case, AWS accounts are not created using Terraform, so this information is otherwise inaccessible. |
This functionality has been released in v3.71.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Description
#8896 added support for AWS Organizations account tagging to
aws_organizations_account
.Unfortunately there is no way to get the list of tags for an account via data source.
aws_organizations_account
that exposes account details including tags.aws_organizations_account_tags
.aws_resource_tags
.Related API calls: ListTagsForResource, ListAccounts
New or Affected Resource(s)
aws_organizations_account
oraws_organizations_account_tags
oraws_resource_tags
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: