This repository has been archived by the owner on Jan 19, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add enter and exit maintenance fab tasks
Adds two fab tasks called enter_maintenance which takes a maintenance_ip as a parameter and exit_maintenance. This is slightly complicated as there is nothing stopping us from having multiple internet facing ELBs, so we kind of have to loop through our stack and config to find the right ones. When exiting maintenance in order to get the dns_name we need to get the real load balancer object from AWS so we need to work our way to that by: a) create a mapping of logical name into physical name for our stack's elbs b) obtain all ELB object, filtering for physical names that belong to our stack and then for each elb: 1) taking the config name from the cloudformation yaml 2) converting it to the logical name using get_elb_safe_name() (effectively converts something like shiny-foo into ELBshinyfoo) 3) traverse (b) to lookup the dns_name for the logical name
- Loading branch information
1 parent
519d959
commit 3935adb
Showing
1 changed file
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters