Skip to content

kgogolek/aws-switch-off-environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-switch-off-environment

Build Status

Ansible playbook to switch whole environment on/off It will do the following:

  • Start / Stop Elasticache servers
  • Start / Stop EC2 Instances matching a certain tag
  • Scale down ASG groups defined

Requirements

Ansible 2.x

Playbook variables

All of the variables are set in vars/default.yml

Variable Description Default
environment_base_domain Base domain on which elasticache servers will reside test.com
environment_region Region in which script is run eu-west-1
environment_tag EC2 Instance Tag Key Environment
environment_cache_servers List of elastcache servers to start, with parameters {}
environment_asg_groups List of ASG groups to scale up/down {}

Example Run

ansible-playbook -i ec2.py stop_environment.yml -e "env=staging"

License

MIT / BSD

Author Information

Kasia Gogolek kasia@gogolek.co.uk

About

Ansible scripts to switch whole environment on/off

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages