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
posta 2 anni fa194 visualizzazioni
1 Risposta
2
Risposta accettata

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
ESPERTO
Peter_G
con risposta 2 anni fa
  • Thank you @Peter_G

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande