hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.87k stars 9.21k forks source link

[Bug]: `aws_lakeformation_resource_lf_tags` does not support multiple tags from the same LF-Tag set #32172

Closed gdavison closed 1 year ago

gdavison commented 1 year ago

Terraform Core Version

N/A

AWS Provider Version

v5.4.0

Affected Resource(s)

aws_lakeformation_resource_lf_tags

Expected Behavior

I should be able to associate multiple LF-Tags from the same set with a resource.

Actual Behavior

Apply fails with the error

InvalidInputException: Provided list of tags contains duplicate tag key

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "aws_lakeformation_resource_lf_tags" "test" { database { name = aws_glue_catalog_database.test.name }

lf_tag { key = aws_lakeformation_lf_tag.test.key value = "one" }

lf_tag { key = aws_lakeformation_lf_tag.test.key value = "two" } }

resource "aws_lakeformation_lf_tag" "test" { key = "key" values = ["one", "two"] }

Steps to Reproduce

Apply the configuration

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

gdavison commented 1 year ago

Multiple values is not actually supported by the API:

InvalidInputException: Tag value wild card was found or input tag value list has size not equal to 1

github-actions[bot] commented 1 year ago

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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.