Added a new data source aws_glue_catalog_tables which outputs all tables within a specified catalog and database. If no catalog is specified, the account_id is taken. The database_name is a mandatory field and needs to be provided.
The output contains the database name, catalog id and id's containing all the table names within the specified database.
References
Data Source can be used for Glue Tables created by crawlers to ensure custom actions can be applied (e.g. data quality checks).
References to this AWS CLI call
Output from Acceptance Testing
make testacc TESTS=TestAccDataSourceCatalogTables PKG=glue
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.2 test ./internal/service/glue/... -v -count 1 -parallel 20 -run='TestAccDataSourceCatalogTables' -timeout 360m
2024/10/28 09:50:01 Initializing Terraform AWS Provider...
=== RUN TestAccDataSourceCatalogTables_basic
Starting
=== PAUSE TestAccDataSourceCatalogTables_basic
=== CONT TestAccDataSourceCatalogTables_basic
--- PASS: TestAccDataSourceCatalogTables_basic (18.32s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/glue 18.539s
...
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.
For Submitters
Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.
Description
Added a new data source aws_glue_catalog_tables which outputs all tables within a specified catalog and database. If no catalog is specified, the account_id is taken. The database_name is a mandatory field and needs to be provided. The output contains the database name, catalog id and id's containing all the table names within the specified database.
References
Data Source can be used for Glue Tables created by crawlers to ensure custom actions can be applied (e.g. data quality checks). References to this AWS CLI call
Output from Acceptance Testing