All LF-tags must be defined in Lake Formation before they can be used. A LF-tag consists of a
key and one or more possible values for the key. Only data lake administrators can create
LF-tags.
You can create LF-tags by using the AWS Lake Formation console, the API, or the AWS Command Line Interface
(AWS CLI).
- Console
-
To create a LF-tag
-
Open the Lake Formation console at
https://console.aws.amazon.com/lakeformation/.
Sign in as a data lake administrator.
-
In the navigation pane, under Permissions, choose
LF-Tags.
The LF-Tags page appears.
-
Choose Add tag.
-
In the Add LF-Tag dialog box, enter a key and one
or more values.
Each key must have at least one value. To enter multiple values, either enter a
comma-delimited list and then press Enter, or enter one value
at a time and choose Add after each one. The maximum number of
values permitted is 1000.
-
Choose Add tag.
- AWS CLI
-
To create a LF-tag
-
Enter a create-lf-tag
command.
The following example creates a LF-tag with key module
and values
Customers
and Orders
.
aws lakeformation create-lf-tag --tag-key module --tag-values Customers Orders