AWS Lake Formation Resource
This page shows how to write Terraform and CloudFormation for Lake Formation Resource and write them securely.
aws_lakeformation_resource (Terraform)
The Resource in Lake Formation can be configured in Terraform with the resource name aws_lakeformation_resource. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
-
arnrequired - string -
idoptional computed - string -
last_modifiedoptional computed - string -
role_arnoptional computed - string
Explanation in Terraform Registry
Registers a Lake Formation resource (e.g., S3 bucket) as managed by the Data Catalog. In other words, the S3 path is added to the data lake. Choose a role that has read/write access to the chosen Amazon S3 path or use the service-linked role. When you register the S3 path, the service-linked role and a new inline policy are created on your behalf. Lake Formation adds the first path to the inline policy and attaches it to the service-linked role. When you register subsequent paths, Lake Formation adds the path to the existing policy.
AWS::LakeFormation::Resource (CloudFormation)
The Resource in LakeFormation can be configured in CloudFormation with the resource name AWS::LakeFormation::Resource. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
-
ResourceArnrequired - String -
UseServiceLinkedRolerequired - Boolean -
RoleArnoptional - String
Explanation in CloudFormation Registry
The
AWS::LakeFormation::Resourcerepresents the data (Amazon S3 buckets and folders) that is being registered with AWS Lake Formation. When aResourcetype CloudFormation template is uploaded, an AWS Lake Formation https://docs.aws.amazon.com/lake-formation/latest/dg/aws-lake-formation-api-credential-vending.html#aws-lake-formation-api-credential-vending-RegisterResource API call is made to register the resource. When aResourcetype CloudFormation template is removed, the AWS Lake Formation https://docs.aws.amazon.com/lake-formation/latest/dg/aws-lake-formation-api-credential-vending.html#aws-lake-formation-api-credential-vending-DeregisterResource API is called.