tomvisions-toolkit

1.0.8 • Public • Published

Tomvisions Toolkit

In this repository is the code for the AWS DevOps Toolkit that I am building. It runs on the command line and it is constantly in progress. I will be regularly updating it when I have time.

How to install toolkit.

npm install -g tomvisions-toolkit

Current functionality for RDS

  1. import - Reads the keys in a S3 bucket that is specified, parses the keys, and inserts the data in a database
devops rds import --bucket <bucket name> --prefix <key prefix> --config <database config file>

The database config file consists of the following JSON

{ "DB_HOST":"hostname", "DATABASE":"database name", "USERNAME":"user to connect as", "PASSWORD":"password t use" }

  1. export - Exports a database in AWS RDS and creates a snapshot, and then exports it into S3. Temporarily creates IAM role, policies and kms keys for the operaiton
devops rds export --instance <database instance to take snapshot from> --bucket <bucket to store the snapshot to>
  1. Deletes RDS snapshots based on prefix
devops rds delete --prefix <prefix of the snapshots you wish to delete>

Current functionaity for S3

  1. delete - Deletes s3 buckets based on prefix given. If bucket is not empty, it will automatically delete all keys within.
devops s3 delete --prefix <bucket prefix> 

Current functionaity for IAM

  1. delete - Deletes IAM users/roles/polices based on prefix
devops s3 delete --prefix <IAM user/role/policy prefix> --type <type to delete: user, role, policy> 

Current functionaity for SYSTEM

  1. rename - Renames all images files to UUID format while keeping the file extension
devops system rename --source <source folder> --destination <destination folder> --type <uuid>

And more functionalit to come

Readme

Keywords

none

Package Sidebar

Install

npm i tomvisions-toolkit

Weekly Downloads

16

Version

1.0.8

License

ISC

Unpacked Size

121 kB

Total Files

74

Last publish

Collaborators

  • tomvisions