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
demandé il y a 2 ans194 vues
1 réponse
2
Réponse acceptée

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
EXPERT
Peter_G
répondu il y a 2 ans
  • Thank you @Peter_G

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions