Skip to content
/ ppsch Public

This script receives a file (stdin or by argument) and increases TTL attribute for a given DynamoDB table.

License

Notifications You must be signed in to change notification settings

r1cm3d/ppsch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ppsch

TL;DR:

./ppsch --table 'MY_DYNAMO_DB_TABLE' --days 10 --file stub

Prerequisites

aws-cli jq

Table of Contents

About

This is script receives a file (stdin or by argument) and increases TTL attribute given an argument.

Getting Help

./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 

About

This script receives a file (stdin or by argument) and increases TTL attribute for a given DynamoDB table.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages