aws-cost-saving-lambda

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2021 License: MIT

README

aws-cost-saving-lambda

It provides a function to save cost by periodically stopping unnecessary AWS resources.

Getting Started

Setting up AWS credentials

Use Named profiles for this.

Setting environment variables

Using direnv is convenient.

export DEPLOY_STAGE=dev
export AWS_REGION=ap-northeast-1
export AWS_PROFILE=nekochans-dev
export SLS_DEBUG=*
export TARGET_RDS_CLUSTER_LIST='{"targetClusterList": ["dev-database-cluster"]}'
export STOP_RDS_CLUSTER_SCHEDULE_RATE='cron(0 3 * * ? *)'
export STOP_RDS_CLUSTER_IS_ENABLED=true

Directories

Path Synopsis
cmd
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
usecase

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL