Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Scheduled Scaling in AWS Autoscaling Groups #4211

Closed
kurron opened this issue Dec 8, 2015 · 4 comments
Closed

Support Scheduled Scaling in AWS Autoscaling Groups #4211

kurron opened this issue Dec 8, 2015 · 4 comments

Comments

@kurron
Copy link

kurron commented Dec 8, 2015

It appears that as of Terraform v0.6.6 we cannot schedule scaling of our autoscaling groups. The use case is that we have some test instances that don't need to be running at night so we want to shut them off. Currently, you have to use the AWS CLI to accomplish this. Here is a snippet of a Bash file to illustrate what I mean:

# set the capacity to 0 during normal off hours: 5PM to 8AM UTC every day
SCALE_DOWN='aws autoscaling put-scheduled-update-group-action --auto-scaling-group-name ecs-autoscaling-experiment --scheduled-action-name scaledown-schedule-daily --recurrence "0 17 1-31 1-12 1-7" --min-size 0 --max-size 0 --desired-capacity 0'
echo $SCALE_DOWN
eval $SCALE_DOWN

It would be great if Terraform could support this capability.

@stack72
Copy link
Contributor

stack72 commented Dec 10, 2015

I have a WIP on this - #4256

@stack72
Copy link
Contributor

stack72 commented Dec 11, 2015

I believe this is a Duplicate of #2367

@jen20
Copy link
Contributor

jen20 commented Dec 11, 2015

This has landed in #4256! Thanks @stack72!

@jen20 jen20 closed this as completed Dec 11, 2015
@ghost
Copy link

ghost commented Apr 29, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants