I'm looking for alternatives to turn off managed applications via Elastic Beanstalk for a few hours daily in an effort to reduce costs with AWS.
My current setting is:
- Load balancing EB with auto scaling of at least 1 and at most 2 instances;
- "application" type ELB;
- RDS instance for the database.
The EB apparently does not have this functionality via console, the closest I found is the "Terminate" option, which eliminates any configuration made - not what I want. In view of this, I tried to separate the instances individually. The RDS is ok but the EC2 instance does not work because of autoscaling (the beanstalk eliminates it and creates a new one). As for Load balancer, I also did not find anything to turn it off.
Searching for possible solutions I found the following links:
I thought about suspending autoscaling's "ReplaceUnhealthy" action to disable shutdown of unhealthy instances and creation of new instances to override them, in parallel setting up shutdown of the EC2 instance and RDS at the desired times. As for the ELB I did not find an alternative for the temporary shutdown.
I would like to help you analyze the feasibility of this strategy and possible unintended and / or consequences of sharing an alternative to shutting down instances in the current configuration.
Thank you.