hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.84k stars 9.19k forks source link

feat: add aws_glue_catalog_tables data source #39908

Open JustC0des opened 2 weeks ago

JustC0des commented 2 weeks ago

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

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

...
github-actions[bot] commented 2 weeks ago

Community Note

Voting for Prioritization

For Submitters