TL;DR:
./ppsch --table 'MY_DYNAMO_DB_TABLE' --days 10 --file stub
This is script receives a file (stdin or by argument) and increases TTL attribute given an argument.
./ppsch --help
Help information will be displayed:
ppsch: command-line interface to postpone authorizations scheduler
Usage:
ppsch [ options ]
Options:
[ -v | --verbose ]: Run in verbose mode.
[ -r | --region ]: AWS region. Default is sa-east-1.
[ -t | --table ]: DynamoDB table. Default is Scheduler.
[ -h | --help ]: Displays help information for ppsch.
[ -d | --days ]: How many days to increase scheduler routine. When not specified, DEFAULT_DAYS will be used.
[ -f | --file ]: File path containing authorizations CIDs. Otherwise, stdin will be read.
Example:
Read from stdin in verbose mode increasing scheduler to DEFAULT_DAYS:
cat myFile | ppsch -v
Read file '/tmp/cids' increasing ten days:
ppsch -f '/tmp/cids' -d 10
Read file '/tmp/cids' decreasing five days:
ppsch -f '/tmp/cids' -d -5