Skip to content

Commit

Permalink
update dynamodb tool
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzbaws committed Mar 19, 2020
1 parent cc1cefb commit 9c9bc2a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tools/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## DynamoDB scan tool
### Setup
Change these two lines as your wish:
```
table_queue_name = "s3_migrate_file_list"
src_session = boto3.session.Session(profile_name='iad')
```
### What has it done?
* Scan and save the whole DynamoDB talbe into a csv file in local.
* Show the running jobs. You can change limit, default 10.
* Show the descend order of recent start jobs. You can change limit, default 10.
1 change: 1 addition & 0 deletions tools/analystic_dynamodb_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def get_descend(data): # 降序
if __name__ == '__main__':
table_queue_name = "s3_migrate_file_list"
src_session = boto3.session.Session(profile_name='iad')

dynamodb = src_session.resource('dynamodb')
table = dynamodb.Table(table_queue_name)

Expand Down

0 comments on commit 9c9bc2a

Please sign in to comment.