Resource: aws_lakeformation_data_cells_filter

Terraform resource for managing an AWS Lake Formation Data Cells Filter.

Example Usage

Basic Usage

resource "aws_lakeformation_data_cells_filter" "example" {
  table_data {
    database_name    = aws_glue_catalog_database.test.name
    name             = "example"
    table_catalog_id = data.aws_caller_identity.current.account_id
    table_name       = aws_glue_catalog_table.test.name

    column_names = ["my_column"]

    row_filter {
      filter_expression = "my_column='example'"
    }
  }
}

Argument Reference

The following arguments are required:

Table Data

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Column Wildcard

Row Filter

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import Lake Formation Data Cells Filter using the example_id_arg. For example:

import {
  to = aws_lakeformation_data_cells_filter.example
  id = "database_name,name,table_catalog_id,table_name"
}

Using terraform import, import Lake Formation Data Cells Filter using the id. For example:

% terraform import aws_lakeformation_data_cells_filter.example database_name,name,table_catalog_id,table_name