Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

r/aws_glue_catalog_database: add federated_database argument #35799

Merged
merged 3 commits into from
Feb 14, 2024

Conversation

jar-b
Copy link
Member

@jar-b jar-b commented Feb 13, 2024

Description

The federated_database argument will allow practitioners to configure a glue database referencing a federated database entity outside the AWS Glue Data Catalog.

Also addresses a bug with aws_lakeformation_resource where the use_service_linked_role was being ignored when explicitly configured to false.

Relations

Closes #33453
Relates #35703
Relates #35771

References

Output from Acceptance Testing

% make testacc PKG=glue TESTS=TestAccGlueCatalogDatabase_federatedDatabase
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/glue/... -v -count 1 -parallel 20 -run='TestAccGlueCatalogDatabase_federatedDatabase'  -timeout 360m
=== RUN   TestAccGlueCatalogDatabase_federatedDatabase
=== PAUSE TestAccGlueCatalogDatabase_federatedDatabase
=== CONT  TestAccGlueCatalogDatabase_federatedDatabase
--- PASS: TestAccGlueCatalogDatabase_federatedDatabase (316.85s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/glue       323.887s
% make testacc PKG=glue TESTS=TestAccGlueCatalogDatabase_
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/glue/... -v -count 1 -parallel 20 -run='TestAccGlueCatalogDatabase_'  -timeout 360m

--- PASS: TestAccGlueCatalogDatabase_disappears (12.55s)
--- PASS: TestAccGlueCatalogDatabase_targetDatabaseWithRegion (20.22s)
--- PASS: TestAccGlueCatalogDatabase_createTablePermission (22.82s)
--- PASS: TestAccGlueCatalogDatabase_targetDatabase (24.97s)
--- PASS: TestAccGlueCatalogDatabase_tags (30.04s)
--- PASS: TestAccGlueCatalogDatabase_full (30.95s)
--- PASS: TestAccGlueCatalogDatabase_federatedDatabase (347.71s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/glue       354.919s

Copy link

Community Note

Voting for Prioritization

  • Please vote on this pull request by adding a 👍 reaction to the original post to help the community and maintainers prioritize this pull request.
  • Please see our prioritization guide for information on how we prioritize.
  • 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.

@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/glue Issues and PRs that pertain to the glue service. service/lakeformation Issues and PRs that pertain to the lakeformation service. size/L Managed by automation to categorize the size of a PR. and removed documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/glue Issues and PRs that pertain to the glue service. service/lakeformation Issues and PRs that pertain to the lakeformation service. labels Feb 13, 2024
@terraform-aws-provider terraform-aws-provider bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Feb 13, 2024
… false

Previously, an explicitly configured `use_service_linked_role` argument set to false would still result in the value being sent to the API as true when `role_arn` was not set.
The `federated_database` argument will allow practitioners to configure a glue database referencing a federated database entity outside the AWS Glue Data Catalog.
@jar-b jar-b marked this pull request as ready for review February 13, 2024 21:29
@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/glue Issues and PRs that pertain to the glue service. service/lakeformation Issues and PRs that pertain to the lakeformation service. labels Feb 13, 2024
Copy link
Contributor

@johnsonaj johnsonaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

% make testacc TESTARGS='-run=TestAccGlueCatalogDatabase_' PKG=glue

==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/glue/... -v -count 1 -parallel 20  -run=TestAccGlueCatalogDatabase_ -timeout 360m
--- PASS: TestAccGlueCatalogDatabase_disappears (13.64s)
--- PASS: TestAccGlueCatalogDatabase_targetDatabaseWithRegion (22.31s)
--- PASS: TestAccGlueCatalogDatabase_createTablePermission (23.57s)
--- PASS: TestAccGlueCatalogDatabase_targetDatabase (25.30s)
--- PASS: TestAccGlueCatalogDatabase_full (30.78s)
--- PASS: TestAccGlueCatalogDatabase_tags (30.78s)
--- PASS: TestAccGlueCatalogDatabase_federatedDatabase (347.06s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/glue	354.503s

@jar-b jar-b merged commit f03c92e into main Feb 14, 2024
62 checks passed
@jar-b jar-b deleted the f-glue-federated-database branch February 14, 2024 16:14
@github-actions github-actions bot added this to the v5.37.0 milestone Feb 14, 2024
github-actions bot pushed a commit that referenced this pull request Feb 14, 2024
Copy link

This functionality has been released in v5.37.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Feb 15, 2024
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. service/glue Issues and PRs that pertain to the glue service. service/lakeformation Issues and PRs that pertain to the lakeformation service. size/L Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement]: AWS Glue: Support FederatedDatabase
2 participants