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

[Enhancement]: Support lakeformation data filters #27677

Closed kazdy closed 5 months ago

kazdy commented 1 year ago

Description

Lake Formation Data Filters have been introduced some time ago and are not yet supported by terraform.

Data Filters will allow users to specify row level permissions to data governed by lakeformation.

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

aws_lakeformation_permissions [new] aws_lakeformation_data_filter

Potential Terraform Configuration

resource "aws_lakeformation_data_filter" "example" {
    column_names = ["col_a", "col_b"]
    column_wild_card = "*"
    database_name = "example_database"
    name = "example_filter_name"
    row_filter = "col_a = 'example'"
    table_catalog_id = 123456
    table_name = "example_table"
}

resource "aws_lakeformation_permissions" "test" {
  principal   = aws_iam_role.sales_role.arn
  permissions = ["DESCRIBE"]

  data_filter =  aws_lakeformation_data_filter.example
}

References

https://docs.aws.amazon.com/lake-formation/latest/dg/data-filters-about.html https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/lakeformation#Client.CreateDataCellsFilter https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-datacellsfilter.html

Would you like to implement a fix?

No response

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

github-actions[bot] commented 5 months ago

This functionality has been released in v5.41.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 4 months 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.