Skip to content

Resource: awsLakeformationLfTag

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.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.lakeformationLfTag.LakeformationLfTag(this, "example", {
  key: "module",
  values: ["Orders", "Sales", "Customers"],
});

Argument Reference

The following arguments are supported:

  • catalogId - (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.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - Catalog ID and key-name of the tag

Import

Lake Formation LF-Tags can be imported using the catalogId:key. If you have not set a Catalog ID specify the AWS Account ID that the database is in, e.g.

$ terraform import aws_lakeformation_lf_tag.example 123456789012:some_key