With Elastic Beanstalk, you can quickly deploy and manage applications in the AWS Cloud without worrying about the infrastructure that runs those applications. You simply upload your application, and Elastic Beanstalk automatically handles the details of capacity provisioning, load balancing, scaling, and application health monitoring. By using Spotinst Elastigroups with your EB stacks, you can safely run your environments on EC2 Spot instances. This ground-breaking development has significantly improved the performance, availability and of course the affordability of our customers' applications running on Elastic Beanstalk. Elastigroup will automatically provision EC2 instances and connect them to your Elastic Beanstalk environment. Thanks to this method, you can run multiple instance types to achieve more performance and availability for your environment. Elastigroup will automatically identify and Roll your Elastigroup as new EB deploys are detected. Elastigroup will also register these new instances with the application ELB.How does it work?
Before you start using this integration, please make sure to have:
An active Spotinst account (Sign Up)
A live Beanstalk environment in your AWS account
Creating a beanstalk environment is super easy. You can simply import your environment configuration from AWS to Spotinst with one click!
- Create a new Elastigroup
- Click on the Import button at the first step
- Choose Beanstalk Environment
- Enter the AWS region and environment name
- Give the Elastigroup a name (we recommend to give it the same name as your Beanstalk name)
- All the configurations will be automatically imported into the wizard
- Go through the wizard to make sure all the configurations are properly imported
- Click Create
Your new Elastigroup is now running your Elastic Beanstalk environment and will manage the provisioning of EC2 instances.
Every time you have a new version deployment, our rolling update will deregister instances from ELB, deploy the new version to those instances, and then re-register them to the ELB.
You’ll be able to see the Spot instances running in your Elastic Beanstalk dashboard.
When creating your new cluster in Spotinst, use as many AZs and instance types as possible. This will ensure that you get the most optimal blend of low cost and high availability.
If you’d like, you can set your Elastic Beanstalk, On-Demand ASG to -0 and let us manage your entire set of Elastic Beanstalk instances – especially since you can also choose to run a fixed amount of On-Demand instances via Spotinst.