Reputation: 43609
I'm using elastic beanstalk and in my env.yaml
, I have:
aws:ec2:instances:
InstanceTypes: g4dn.xlarge,c5.4xlarge,r5.2xlarge,r5a.xlarge
EnableSpot: true
SpotMaxPrice: "0.15"
SpotFleetOnDemandBase: "0"
SpotFleetOnDemandAboveBasePercentage: "0"
When I go to my instance
, I see under Lifecycle
, that some are spot
. But how do I know how much I'm paying for it?
Upvotes: 3
Views: 750
Reputation: 44
The pricing for spot instances is dynamic and billing takes place on an hourly basis. As long as the spot instance price is below the max bid price specified by you, the instances will remain operational and billing will continue. For more details please check the answer : How to get the price of a running EC2 spot instance?
Upvotes: 1