Serverless apps are very efficient at running code, so what if we leveraged AWS Lambda to automate governance policies for multi-cloud environments? This repository has several AWS Lambda functions that can be triggered from CloudHealth.
There are a few steps to get started with the AWS Lambda samples in this repository.
- Install SAM CLI
- Install Docker if you want to test the apps on your local machine.
- Stop RDS instances - Stops RDS instances (looks for ARN values from CloudHealth with
resource type='db'
) - Snapshot EC2 instances - Takes a snaphot of an EC2 instance (looks for ARN values from CloudHealth with
resource type = 'instance'
) - Modify EBS volume - Updates the size of an EBS volume (looks for ARN values from CloudHealth with
resource type = 'instance'
)
All samples are available in Python and Go
If you have any thoughts on which functions we could add, feel free to raise a new issue. If you want to contribute your own functions to this repository, feel free to open a Pull Request.
All of these functions are available under the MIT license.