简体   繁体   English

如何在特定时间关闭AWS测试环境

[英]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.

相关问题 如何在某些事件中在 aws 中运行一次 docker 映像并在那之后将其关闭? - How to run docker image one time in aws on some event and shut down it after that? 如何更改 AWS Cloud9 的自动休眠时间或手动关闭它? - How can I change the automatic hibernation time for AWS Cloud9 or shut it down manually? 我如何在晚上关闭AWS ElasticBeanstalk env? - How can I shut down my AWS ElasticBeanstalk env at night? 如何从ELB组中正常关闭或删除AWS实例 - How to gracefully shut down or remove AWS instances from an ELB group 如何设置有关将要关闭的实例的AWS通知? - How do I set up an AWS notification about an instance that is going to be shut down? 如何使用 shell 脚本关闭节点服务器? - How to shut down a node server with a shell script? 创建一个AWS Lambda函数以基于低CPU使用率关闭实例 - Create an AWS lambda function to shut down instances based on low CPUUtilisation AWS S3 Transfer Manager演示已关闭 - aws S3 Transfer Manager Demo shut down 设置 AWS Cloudwatch 警报数据点时间跨度和操作以将其关闭 - Set AWS Cloudwatch Alarm datapoint timespan and action to shut it down AWS 上的 Lambda function 在 EC2 关闭之前发送通知 - Lambda function on AWS to send notification before EC2 shut down
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM