Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

DEPRECATED: use SpotCLI instead

Notifications You must be signed in to change notification settings

ironsource-arc/spotinst-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NOTICE: THIS TOOL IS RETIRED AND WILL NOT BE MAINTAINED. USE SPOTCLI INSTEAD.

spotinst-cli

spotinst-cli is is an interactive command line tool which allows you to to control your spotinst groups and instances.

Usage

spotinst-cli has the following flags -

  -h, --help                   show this help message and exit
  -g GREP, --grep=GREP         text to filter groups by
  -d, --get-data               get groups data from spotinst
  -s, --get-status             get groups status  
  --suspension-status          get groups suspension status  
  -u UNGREP, --ungrep=UNGREP   text to exclude groups
  -l, --list                   show group list and exit
  --min=MIN                    update group minimum capacity, must supply with max and target
  --target=TARGET              update group target capacity, must supply with min and max
  --max=MAX                    update group maximum capacity, must supply with min and target
  --scale-up=SCALE_UP          scale up group by X number of instances
  --scale-down=SCALE_DOWN      scale down group by X number of instances
  --suspend                    suspend group activities, must supply AUTO_SCALE or AUTO_HEALING
  --unsuspend                  unsuspend group activities, must supply AUTO_SCALE or AUTO_HEALING
  --roll                       roll a group, must supply batch-size, and grace-period
  --batch-size=BATCH           roll batch size - must supply with the roll flag
  --grace-period=GRACE         roll grace period - must supply with the roll flag
  --replace-ami=AMI            replace AMI for group
  --replace-health=HEALTH      replace the health check type - can be HCS, EC2, ELB
  --user-data=USER_DATA        updated user data - supply a file path which contains the user data script (cloud init)
  --detach-batch               detach all instances for specific batch - choose from a list of batches
  -y, --skip-validation        skip prompt validation for non-interactive mode

Example usage

list groups with name filter:

get data:

get status:

get suspension status:

update capacity:

scale up:

replace AMI:

detach specific batch:

About

DEPRECATED: use SpotCLI instead

Resources

Stars

Watchers

Forks

Languages

  • Python 100.0%