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.63k stars 9.01k forks source link

New Resource: aws_lakeformation_resource_link #17069

Open WafflesMcDuff opened 3 years ago

WafflesMcDuff commented 3 years ago

Need the ability to create resource links through terraform for aws_lakeformation

Community Note

Description

image

New or Affected Resource(s)

References

anGie44 commented 3 years ago

Hi @WafflesMcDuff, thank you for creating this issue! Making a first pass at the AWS LakeFormation User Guide/available SDK methods, I don't currently see support for this operation but we'll keep an eye out for this functionality 👍

chrisbulgaria commented 3 years ago

Hi, I think this is implemented on the underlying Glue level - here : https://docs.aws.amazon.com/glue/latest/webapi/API_CreateTable.html (TargetDatabase) . But its indeed not available on the terraform glue resources, there is an issue for that already https://github.com/hashicorp/terraform-provider-aws/issues/15296

And btw - there are several important issues and pull requests outstanding for LakeFormation - so all LF and terraform fans please vote them up so that we have a chance to get them implemented !

WafflesMcDuff commented 3 years ago

Related to #15296

amirbrown commented 3 years ago

Hi, I think this is implemented on the underlying Glue level - here : https://docs.aws.amazon.com/glue/latest/webapi/API_CreateTable.html (TargetDatabase) . But its indeed not available on the terraform glue resources, there is an issue for that already

15296

Yeah, lf is confusing because the console ui fronts various parts of glue functionality without being clear what it is doing. If you look at the lf docs about the resource links you can see that it is all glue apis and permissions. https://docs.aws.amazon.com/lake-formation/latest/dg/resource-links-glue-apis.html

There is no reference to a resource link in the lf api docs or lf cloudformation docs.

jogoldberg commented 3 years ago

@bflad - Can you help get some priority around this?

rito-sixt commented 1 year ago

Hi. Any updates on this?

Mralbert93 commented 1 year ago

You should be able to create resource links in Lake Formation by using the aws_glue_catalog_database resource and specifying a target_database block.