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

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠