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.74k stars 9.1k forks source link

[Enhancement]: support for AWS Lake Formation and Glue Data Catalog cross-Region table access #32099

Closed rtoma-btg closed 1 year ago

rtoma-btg commented 1 year ago

Description

AWS has released a feature to support cross-region Glue table access. Related blog / docs:

Please add support for this feature in the Terraform AWS provider.

Affected Resource(s) and/or Data Source(s)

Potential Terraform Configuration

As of June 20th the API docs for glue:CreateTable https://docs.aws.amazon.com/glue/latest/webapi/API_CreateTable.html has not yet been updated, but docs at https://docs.aws.amazon.com/lake-formation/latest/dg/create-resource-link-table.html mention how to do it using the AWS CLI, so we can assume the API is there.

$ aws glue create-table —region eu-west-1 —cli-input-json '{
    "CatalogId": "111122223333",
    "DatabaseName": "ireland_db",
    "TableInput": {
        "Name": "rl_useast1salestb_ireland",
        "TargetTable": {
            "CatalogId": "444455556666",
            "DatabaseName": "useast1_salesdb",
            "Region": "us-east-1", <------------------
            "Name":"useast1_salestb"
        }
    }
}‘

When I map this to the current Terraform resource I believe the target_table parameter (see https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/glue_catalog_table#target_table), needs to be extended with a region.

References

No response

Would you like to implement a fix?

No

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

DrFaust92 commented 1 year ago

looking into this

github-actions[bot] commented 1 year ago

This functionality has been released in v5.7.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[bot] commented 1 year ago

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.