Open devforbes opened 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
Note: Inheritance appears to have been added by AWS so that table based tags assigned to the database level automatically apply to all tables. If this is correct, then the documentation should be changed to reflect that reality that this feature is no longer supported/required.
Terraform Core Version
1.3.1,1.4.6
AWS Provider Version
4.67.0
Affected Resource(s)
When creating aws_lakeformation_resource_lf_tags tag on a table resource the documentation says:
Under the "table" header
I have another resource created using the "database" option and it works perfectly. When trying to make the "All Tables" assignment, such as the below example, it fails.
The error received is:
Expected Behavior
A tag is assigned to all tables under the aws_glue_catalog_database.my_catalog_database
Actual Behavior
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Tables are not defined in my terraform because a crawler makes them. There is no method of getting tables and pulling them in as an object unless the terraform made them. For this purpose, you can define the catalog, add a table manually, then run the below. The below should add a tag to that table.
Steps to Reproduce
This terraform presumes a set up Lake Formation and catalog, with a lake formation role. It presumes you've made at least one database and table within that catalog https://docs.aws.amazon.com/lake-formation/latest/dg/getting-started-setup.html
Try to apply the terraform It will want you to supply a table name to apply the tag too.
Debug Output
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None