Resource: aws_lakeformation_resource_lf_tags

Manages an attachment between one or more existing LF-tags and an existing Lake Formation resource.

Example Usage

Database Example

resource "aws_lakeformation_lf_tag" "example" {
  key    = "right"
  values = ["abbey", "village", "luffield", "woodcote", "copse", "chapel", "stowe", "club"]
}

resource "aws_lakeformation_resource_lf_tags" "example" {
  database {
    name = aws_glue_catalog_database.example.name
  }

  lf_tag {
    key   = aws_lakeformation_lf_tag.example.key
    value = "stowe"
  }
}

Multiple Tags Example

resource "aws_lakeformation_lf_tag" "example" {
  key    = "right"
  values = ["abbey", "village", "luffield", "woodcote", "copse", "chapel", "stowe", "club"]
}

resource "aws_lakeformation_lf_tag" "example2" {
  key    = "left"
  values = ["farm", "theloop", "aintree", "brooklands", "maggotts", "becketts", "vale"]
}

resource "aws_lakeformation_resource_lf_tags" "example" {
  database {
    name = aws_glue_catalog_database.example.name
  }

  lf_tag {
    key   = "right"
    value = "luffield"
  }

  lf_tag {
    key   = "left"
    value = "aintree"
  }
}

Argument Reference

The following arguments are required:

Exactly one of the following is required:

The following arguments are optional:

lf_tag

The following arguments are required:

The following argument is optional:

database

The following argument is required:

The following argument is optional:

table

The following argument is required:

The following arguments are optional:

table_with_columns

The following arguments are required:

The following arguments are optional:

Attribute Reference

This resource exports no additional attributes.