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.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 271015ebccab836396fe34f0bd55ea1c86103c04ca58f867b24440921b7894f7 |
|
MD5 | 5eae4c088b96b961b1ecca43774af74c |
|
BLAKE2b-256 | a817304b04c7f4af37b2040f0e66ac139b6a440eeb249d83ae272fe511cd9393 |