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.
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
- 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.
Important note - Elastic Beanstalk deployment policies
Please note that the Spotinst Elastic Beanstalk integration works as described in these docs for the following Elastic Beanstalk deployment policies:
All at once and
Please reach out to our support through chat, or email firstname.lastname@example.org if your Beanstalk environment uses
Rolling with additional batch or
immutable deployment policies.”