Skip to content

This repo provides documentation and examples of terraform bugs

Notifications You must be signed in to change notification settings

danu165/terraform-bugs

Repository files navigation

Terraform errors with aws_glue_catalog_table and aws_lakeformation_permissions

There seem to several bugs revolving around resource linking with aws_glue_catalog_table. The directory glue_catalog_table_error goes through the specific bug found with that resource.

As described in glue_catalog_table_error/README.md, aws_glue_catalog_table only works on the first run of a terraform apply. Therefore we went a step further with Lake Formation and noticed additional errors between the integration of resource-linked aws_glue_catalog_table and aws_lakeformation_permission. Please refer to lakeformation_permissions_error/README.md for details.

The provider used is 3.50.0. According to the changelog there hasn't been work on aws_glue_catalog_database, aws_glue_catalog_table since 3.47.0. There also hasn't been any work on aws_lakeformation_permissions since 3.49.0. Therefore provider version 3.50.0 should behave the same as any other recent version.

Updates

2021-08-30

After contacting AWS support about the lakeformation_permissions_error, we found that permissioning simply works differently for resource-linked tables. A role needs SELECT access to the underlying resource (ie. library.books) and DESCRIBE access to the resource-link (ie. library_link.books_link). That will allow the role to run SELECT on the resource-linked table.

About

This repo provides documentation and examples of terraform bugs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages