-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Open
Labels
functionPertains to provider functions.Pertains to provider functions.new-functionIntroduces a new function.Introduces a new function.tagsPertains to resource tagging.Pertains to resource tagging.
Description
What new functionality are you requesting?
tag_to_terraform_typesterraform_to_tag_type
Description
These provider defined functions would expose mappings between the tag resource types used when authoring organizational tag policies, and resource types in the Terraform AWS provider. As one tag type can map to multiple Terraform types, the "tag to Terraform" result is an array and the "Terraform to tag" result will be a string.
Potential Terraform Configuration
# returns: ["aws_cloudwatch_log_group"]
output "example" {
value = provider::aws::tag_to_terraform_types("logs:log-group")
}# returns: "logs:log-group"
output "example" {
value = provider::aws::terraform_to_tag_type("aws_cloudwatch_log_group")
}References
Relates #45143
Depends on #45213
Would you like to implement the enhancement?
No
Metadata
Metadata
Assignees
Labels
functionPertains to provider functions.Pertains to provider functions.new-functionIntroduces a new function.Introduces a new function.tagsPertains to resource tagging.Pertains to resource tagging.