[英]How to shut down AWS test environment on a particular time
We have a test environment on a AWS elastic beanstalk and I would like to shut this down on weekends and hours not using. 我们在AWS Elastic beantalk上有一个测试环境,我想在周末和几个小时不使用时关闭它。
When inquired I got information about a third party tool that does that which I have to pay extra 50$ a month. 当被询问时,我获得了有关第三方工具的信息,该工具每月需要我额外支付50美元。
Does anybody any how to automatically shutdown/restart ec2 instances/elastic-beanstalk on AWS ? 是否有人在AWS上自动关闭/重启ec2实例/ elastic-beanstalk吗?
Please note I am fairly new to AWS and I tried finding out to see if I can do this easily but unable to. 请注意,我是AWS的新手,我尝试找出是否可以轻松但无法做到这一点。
Thanks for any directions. 感谢您的指示。
You can use a solution from AWS: Instance Scheduler 您可以使用来自AWS的解决方案:实例计划程序
It's based on instances tags. 它基于实例标签。
If you have an AutoScaling Group in your stack, you can use: 如果堆栈中有一个AutoScaling组,则可以使用:
With a simple cron expression, you will schedule the size of your ASG. 使用简单的cron表达式,您将计划ASG的大小。
Skeddly offers 100 free events free tier which would cover your use case https://www.skeddly.com/pricing/ Skeddly提供100个免费事件免费套餐,可满足您的使用情况https://www.skeddly.com/pricing/
I manage a small development account with 8 EC2 instances, 2 autoscaling groups, and 2 RDS instances, and I schedule them for use about 200 hours a month (approx 50 hours a week.) 我管理一个小型开发帐户,其中包含8个EC2实例,2个自动伸缩组和2个RDS实例,并将它们安排为每月约200个小时(每周约50个小时)使用。
I get significant savings over demand and even reserved instances by this type of scheduling tool. 通过这种类型的调度工具,我可以大大节省需求甚至保留实例。 I pay about $10 per month. 我每月支付约10美元。 This is a good value, compared to building an maintaining your own scheduler. 与构建自己的调度程序相比,这是一个很好的价值。
Usual disclaimer: Just a happy customer. 通常免责声明:只是一个快乐的客户。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.