A small utility to help do start, stop and tag actions in an IaC stack for cost optimization purpose.
Project description
A small utility to help do start, stop and tag actions in an IaC stack for cost optimization purpose.
Stackoperator now support CloudFormation and Terraform stack.
It's a great idea to use stackoperator with Instance Scheduler on AWS solution by tagging stoppable resources created by IaC stack.
Prerequisites:
Before using stackoperator script, please make sure correct AWS credential in envs, using aws-vault to store and switch AWS credentials is recommend.
Install
pip install stackoperator
Upgrade
pip install --upgrade stackoperator
Usage
startcfnstack --stackname <CloudFormation_Stack_Name>
stopcfnstack --stackname <CloudFormation_Stack_Name>
tagcfnstack --stackname <CloudFormation_Stack_Name>
starttfstack [--statefile <Terraform_Stack_StateFile>]
stoptfstack [--statefile <Terraform_Stack_StateFile>]
tagtfstack [--statefile <Terraform_Stack_StateFile>]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for stackoperator-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c0ed0e80add82bcb4ea63c1d91130ca3aec562483dd5f892bf7d5007f36f059 |
|
MD5 | 7bff00c0d457ae7e087715e2a0230f6d |
|
BLAKE2b-256 | 6555f4f5fed851765d2e0f7e6a2f130912ce34e3656a98594fd19fb0d8a3dfde |