Skip to content

Instantly share code, notes, and snippets.

@rahulmamgain
Created May 12, 2018 16:11
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save rahulmamgain/93f2ad23c9934a5da5bc878f49c91d64 to your computer and use it in GitHub Desktop.
Save rahulmamgain/93f2ad23c9934a5da5bc878f49c91d64 to your computer and use it in GitHub Desktop.
Spot Instance Configuration Elastic Beanstalk
Resources:
AWSEBAutoScalingLaunchConfiguration:
Type: "AWS::AutoScaling::LaunchConfiguration"
Properties:
SpotPrice:
"Fn::GetOptionSetting":
Namespace: "aws:elasticbeanstalk:application:environment"
OptionName: "EC2_SPOT_PRICE"
DefaultValue: {"Ref":"AWS::NoValue"}
@etc-tiago
Copy link

Not working for me... I should be setting the value like DefaultValue: {"Ref":"0.1"}?

@trevor403
Copy link

"The value for EC2_SPOT_PRICE, can be set through the elastic beanstalk environment configuration.”  https://link.medium.com/FpTldH0Sl1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment