aws-switch

command module
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

README

aws-switch

Use tags to identify aws resources to halt or resume expensive services.

The basic idea:

  1. identify resources based on a given set of tags
  2. halt - scale resources down to zero and store previous values in a state
  3. resume - scale resources back to previous value based on stored state

Currenlty supports

  • ecs:services (does not include underlying compute if running on ec2)
  • rds:clusters (provissioned only as serverless auto scales on its own)
  • rds:db (all database instances that are not a part of a cluster)
Homebrew
brew install chrispruitt/tap/aws-switch
Install from source

Install binary from source.

Usage

    $> aws-switch --help

    aws-switch is used to halt and resume all aws services by tag.

    Usage:
    aws-switch [command]

    Available Commands:
    configure   Creates an s3 bucket for the aws-switch state to reside
    halt        halt an aws service
    help        Help about any command
    resume      Resume a halted aws service

    Flags:
    -h, --help      help for aws-switch
        --version   version for aws-switch

Roadmap

  • --exclude-tag flag to optionally exclude resources with specific tags
  • different backends - local, dynamodb
  • read configuration from yaml file or env vars
  • show changes and ask for confirmation before scaling up or down
  • flag to select specific services - rds, ecs - default to all
  • show state
  • resume specific items in state - work around using a good tagging stradegty and just identify resources by tags

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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