You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/aws/services/lakeformation.md
+14-15Lines changed: 14 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
1
---
2
2
title: "Lake Formation"
3
-
linkTitle: "Lake Formation"
4
3
description: Get started with Lake Formation on LocalStack
5
4
tags: ["Ultimate"]
6
5
---
@@ -11,7 +10,7 @@ Lake Formation is a managed service that allows users to build, secure, and mana
11
10
Lake Formation allows users to define and enforce fine-grained access controls, manage metadata, and discover and share data across multiple data sources.
12
11
13
12
LocalStack allows you to use the Lake Formation APIs in your local environment to register resources, grant permissions, and list resources and permissions.
14
-
The supported APIs are available on our [API coverage page]({{< ref "coverage_lakeformation" >}}), which provides information on the extent of Lake Formation's integration with LocalStack.
13
+
The supported APIs are available on our [API coverage page](), which provides information on the extent of Lake Formation's integration with LocalStack.
15
14
16
15
## Getting started
17
16
@@ -24,9 +23,9 @@ We will demonstrate how to register an S3 bucket as a resource in Lake Formation
24
23
25
24
Create a new S3 bucket named `test-bucket` using the `mb` command:
26
25
27
-
{{< command >}}
28
-
$ awslocal s3 mb s3://test-bucket
29
-
{{</ command >}}
26
+
```bash
27
+
awslocal s3 mb s3://test-bucket
28
+
```
30
29
31
30
You can now register the S3 bucket as a resource in Lake Formation using the [`RegisterResource`](https://docs.aws.amazon.com/lake-formation/latest/dg/API_RegisterResource.html) API.
32
31
Create a file named `input.json` with the following content:
@@ -40,19 +39,19 @@ Create a file named `input.json` with the following content:
40
39
41
40
Run the following command to register the resource:
42
41
43
-
{{< command >}}
42
+
```bash
44
43
awslocal lakeformation register-resource \
45
44
--cli-input-json file://input.json
46
-
{{</ command >}}
45
+
```
47
46
48
47
### List resources
49
48
50
49
You can list the registered resources using the [`ListResources`](https://docs.aws.amazon.com/lake-formation/latest/dg/API_ListResources.html) API.
51
50
Execute the following command to list the resources:
52
51
53
-
{{< command >}}
52
+
```bash
54
53
awslocal lakeformation list-resources
55
-
{{</ command >}}
54
+
```
56
55
57
56
The following output is displayed:
58
57
@@ -94,16 +93,16 @@ Create a file named `permissions.json` with the following content:
94
93
95
94
Run the following command to grant permissions:
96
95
97
-
{{< command >}}
98
-
$ awslocal lakeformation grant-permissions \
96
+
```bash
97
+
awslocal lakeformation grant-permissions \
99
98
--cli-input-json file://check.json
100
-
{{</ command >}}
99
+
```
101
100
102
101
### List permissions
103
102
104
103
You can list the permissions granted to a user or group using the [`ListPermissions`](https://docs.aws.amazon.com/lake-formation/latest/dg/API_ListPermissions.html) API.
105
104
Execute the following command to list the permissions:
0 commit comments