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

Glue Data Catalog: support TargetDatabase and TargetTable #15296

Closed
roberth-k opened this issue Sep 23, 2020 · 2 comments
Closed

Glue Data Catalog: support TargetDatabase and TargetTable #15296

roberth-k opened this issue Sep 23, 2020 · 2 comments
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/glue Issues and PRs that pertain to the glue service. service/lakeformation Issues and PRs that pertain to the lakeformation service.
Milestone

Comments

@roberth-k
Copy link
Contributor

roberth-k commented Sep 23, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • 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
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

This is related to the overall implementation of Lake Formation (#9700).

#14411 must also be implemented in order for Glue databases to be shareable with Lake Formation.

The TargetDatabase and TargetTable properties of Glue Data Catalog databases and tables are used for setting up Resource Links, which is required to be able to surface cross-account shared tables in Athena and Redshift Spectrum.

It's possible there's also a specific TableType associated with this.

New or Affected Resource(s)

  • aws_glue_catalog_table
  • aws_glue_catalog_database

Potential Terraform Configuration

resource "aws_glue_catalog_database" "example" {
  name = "my-database"

  target_database {
    catalog_id    = "1234567890"
    database_name = "external-database"
  }
}

resource "aws_glue_catalog_table" "example" {
  name          = "my-table"
  database_name = aws_glue_catalog_database.example.name

  target_table {
    catalog_id    = "1234567890"
    database_name = "external-database"
    name          = "external-table"
  }
}

References

@roberth-k roberth-k added the enhancement Requests to existing resources that expand the functionality or scope. label Sep 23, 2020
@ghost ghost added the service/glue Issues and PRs that pertain to the glue service. label Sep 23, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Sep 23, 2020
@gdavison gdavison added service/lakeformation Issues and PRs that pertain to the lakeformation service. and removed needs-triage Waiting for first response or review from a maintainer. labels Sep 23, 2020
@breathingdust breathingdust added this to the v3.41.0 milestone May 19, 2021
@breathingdust
Copy link
Member

Closed via #19371 + #19372 and released in v3.41.0 of the provider 🎉

@github-actions
Copy link

I'm going to lock this issue 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 similar to this, 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 Jun 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/glue Issues and PRs that pertain to the glue service. service/lakeformation Issues and PRs that pertain to the lakeformation service.
Projects
None yet
Development

No branches or pull requests

3 participants