aws_glue_catalog_table is not changed when aws_glue_schema dependency is updated #25774
Labels
bug
Addresses a defect in current functionality.
eventual-consistency
Pertains to eventual consistency issues.
service/glue
Issues and PRs that pertain to the glue service.
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Expected Behavior
If I change an
aws_glue_schema
, anaws_glue_catalog_table
depending on that schema should be updated as well.Actual Behavior
An initial apply of the example above works fine. If I now change the schema of the
aws_glue_schema
resource and apply again, a new version of that schema will be registered in the Glue Schema Registry - so far so good. However, theaws_glue_catalog_table
, which is set up to use thelatest_schema_version
is not updated. If I runterraform apply
again, it picks up the new version of the schema and updates the table.Steps to Reproduce
terraform apply
- an initial version of the schema and table are createdfield_2
:terraform apply
- theaws_glue_schema
is modified and a new version of the schema is registered.terraform apply
- nowaws_glue_catalog_table
is updated accordinglyImportant Factoids
I'm quite new to Terraform and hope I'm not doing something completely stupid here.
References
I've been looking around for other issues where people had to run
terraform apply
twice to achieve what they wanted, but didn't quite find what I was looking for:The text was updated successfully, but these errors were encountered: