Creates an LF-Tag with the specified name and values. Each key must have at least one value. The maximum number of values permitted is 15.
resource "aws_lakeformation_lf_tag" "example" {
key = "module"
values = ["Orders", "Sales", "Customers"]
}
This resource supports the following arguments:
catalog_id
- (Optional) ID of the Data Catalog to create the tag in. If omitted, this defaults to the AWS Account ID.key
- (Required) Key-name for the tag.values
- (Required) List of possible values an attribute can take.This resource exports the following attributes in addition to the arguments above:
id
- Catalog ID and key-name of the tagIn Terraform v1.5.0 and later, use an import
block to import Lake Formation LF-Tags using the catalog_id:key
. If you have not set a Catalog ID specify the AWS Account ID that the database is in. For example:
import {
to = aws_lakeformation_lf_tag.example
id = "123456789012:some_key"
}
Using terraform import
, import Lake Formation LF-Tags using the catalog_id:key
. If you have not set a Catalog ID specify the AWS Account ID that the database is in. For example:
% terraform import aws_lakeformation_lf_tag.example 123456789012:some_key