Skip to main content

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

stackoperator-0.0.3.tar.gz (5.9 kB view hashes)

Uploaded Source

Built Distribution

stackoperator-0.0.3-py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page