Skip to content

Commit 55b4c8d

Browse files
committed
Add database specific mode, dryrun mode, verbose logging mode, and skip error mode to the Lake Formation IAM access control utility
1 parent 84ab22d commit 55b4c8d

File tree

2 files changed

+298
-126
lines changed

2 files changed

+298
-126
lines changed

utilities/use_only_IAM_access_controls/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,25 @@
22

33
AWS Lake Formation applies its own permission model when you access data in Amazon S3 and metadata in AWS Glue Data Catalog through use of Amazon EMR, Amazon Athena and so on. If you currently use Lake Formation and instead would like to use only IAM Access controls, this tool enables you to achieve it.
44

5+
### Command line Syntax
6+
```
7+
$ update_permission.py [-h] [-p PROFILE] [-r REGION] [-g GLOBAL_CONF] [-d TARGET_DATABASES] [--skip-errors] [--dryrun] [-v]
8+
9+
optional arguments:
10+
-h, --help show this help message and exit
11+
-p PROFILE, --profile PROFILE
12+
AWS named profile name
13+
-r REGION, --region REGION
14+
AWS Region (e.g. "us-east-1")
15+
-g GLOBAL_CONF, --global GLOBAL_CONF
16+
(Optional) Update global configurations; Data Lake Settings and Data lake locations (default: true)
17+
-d TARGET_DATABASES, --databases TARGET_DATABASES
18+
(Optional) The comma separated list of target database names (default: all databases)
19+
--skip-errors (Optional) Skip errors and continue execution. (default: false)
20+
--dryrun (Optional) Display the operations that would be performed using the specified command without actually running them (default: false)
21+
-v, --verbose (Optional) Display verbose logging (default: false)
22+
```
23+
524
## How to use it
625

726
You can run this script in any location where you have Python3 and AWS credentials.

0 commit comments

Comments
 (0)