aws-automation-utils
Some Helpers to automate certain AWS tasks such as restoring an RDS instance or updating ElasticBeanstalk environment settings
Usage
npm i aws-automation-utils --save
Create fresh backup of a database
Spawns a new instance with the desired parameters. It waits for the instance to be available. The new instance has a unique name based on the current date and time of the day.
const rdsService = rds;const newDatabaseName = await rdsService;console;
Change the Master Password of a database
Changes the master password of a database. It waits for the instance to be available.
const rdsService = rds;await rdsService;
Delete old Development databases
Deletes old database instances based on their name. As long as they start with the specified prefix.
const rdsService = rds;await rdsService;
Update an Elastic Beanstalk environment variable
Sets an environment value in the specified Elastic Beanstalk environment. It waits for the environment to be ready.
const elasticBeanstalkHelper = elasticBeanstalk;await elasticBeanstalkHelper;
Set a Lambda Environment Variable
Sets an environment value in the specified lambda function. It creates a new setting if the setting does not exist.
const lambda = lambda;await lambda;
Disable a lambda
Disables all the event source mappings of the specified lambda function.
const lambda = lambda;const statusUpdateResult = await lambda;
Enable a lambda
Enables all the event source mappings of the specified lambda function.
const lambda = lambda;const statusUpdateResult = await lambda;
Change the concurrency limit of a lambda
Sets the concurrency limit of a lambda to the specified value. Disables the limit when 0
is specified.
const lambda = lambda;const statusUpdateResult = await lambda;
Disable the concurrency limit of a lambda
const lambda = lambda;const statusUpdateResult = await lambda;