Search code examples
amazon-web-servicesamazon-elastic-beanstalk

How to get spot instances for my ElasticBeanstalk Environment


I created an ElasticBeanstalk environment and set this config

elasticbeanstalk config

but when I check the status of the instance it shows normal, should not this above config makes the instance a spot?


Solution

  • AWS docs explain how to get only spot:

    You may still wish to use a Spot Instance in a single instance environment for development or testing. When you do, be sure to set both SpotFleetOnDemandBase and SpotFleetOnDemandAboveBasePercentage to zero. Any other settings result in an On-Demand Instance.