Successfully attaches a lake formation tag to a table.
If the tag is removed from the table outside of terraform (from the console), terraform should identify the change as part of terraform plan and terraform apply commands.
Actual Behavior
When the tag that has been added to a table with the terraform apply is removed from the table outside of terraform the terraform plan and terraform apply commands do not identify any changes to the resource
Relevant Error/Panic Output Snippet
module.lf_table_tag["xxx"].aws_lakeformation_resource_lf_tags.table_tag: Refreshing state... [id=4205110908]
No changes. Your infrastructure matches the configuration.
After the Lake Formation tag is removed from the table, this API call returns nothing (no content at all). Maybe the nothing is messing up the resource retrieval?
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.2.9
AWS Provider Version
4.37.0
Affected Resource(s)
aws_lakeformation_resource_lf_tags resource=table
Expected Behavior
Successfully attaches a lake formation tag to a table.
If the tag is removed from the table outside of terraform (from the console), terraform should identify the change as part of
terraform plan
andterraform apply
commands.Actual Behavior
When the tag that has been added to a table with the
terraform apply
is removed from the table outside of terraform theterraform plan
andterraform apply
commands do not identify any changes to the resourceRelevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
aws_lakeformation_resource_lf_tags
terraform plan
and look for changes in the resourceDebug Output
No response
Panic Output
No response
Important Factoids
Looking at AWS Cloudtrail, it looks like terraform is retrieving the table's tag information via the api:
After the Lake Formation tag is removed from the table, this API call returns nothing (no content at all). Maybe the nothing is messing up the resource retrieval?
References
No response
Would you like to implement a fix?
No