.review_apps: use app autoscaling to turn review apps off at night, weekends #1806
+38
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note
This PR has been raised so that we can check the review app in the morning and see if it went down to zero.
A matching PR has been raised to give the role permission to do this: https://github.com/alphagov/forms-deploy/pull/1391
What problem does this pull request solve?
Trello card: #1806
AWS App Autoscaling allows us to scale AWS ECS services up and down on a schedule. To save money, we want to turn them off at 6pm each day, and then back on at 8am Monday to Friday.
The result should be them being turned off from 6pm to 8am Monday to Friday, and all day on weekends.
Things to consider when reviewing
I let the scaling rules take effect overnight to demonstrate them working against the review app for this PR