Elastic scale and auto-deploy

0

Hello folks, I have been a AWS EC2 user for some time and looking for some guidance on a large project that I am embarking on. I am looking to deploy a cluster of few 100s of EC2 instances within a VPC, where each instance will be created off a private image with all the software that I need is already available. The part that I am seeking help on is - how to start application automatically as soon as the instance is created. Are there any tools that can help with such deployment? Any pointers, documentation or a link to it would be immensely helpful.

I am looking to avoid EKS and any other Kubernetes based options at this stage.

Thanks for your time on my question above.

wildnez
已提問 2 年前檢視次數 194 次
1 個回答
2
已接受的答案

There are many options available here but ultimately depends on how you plan to deploy the instances, eg will you use Infrastructure as code using cloudformation/terraform or some other method. All methods support using a userdata script to run commands for your bootstrap.

If using cloudformation I recommend using cfn-init to bootstrap your instances as this offers a well defined structure to the bootstrap

Another important consideration is signalling that your instances are ready within your bootstrap. You should use cfn-signal if using cloudformation or lifecycle hooks within autoscale groups so you can be sure your bootstrap has completed successfully and the instance is ready for service

AWS
專家
Peter_G
已回答 2 年前
  • Thank you @Peter_G

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南