Skip to content

Instantly share code, notes, and snippets.

@GovardhanKanala
Forked from rahulmamgain/spot_price.config
Created October 3, 2018 10:57
Show Gist options
  • Save GovardhanKanala/0f350ed030aed2e9169bdff912f4f47e to your computer and use it in GitHub Desktop.
Save GovardhanKanala/0f350ed030aed2e9169bdff912f4f47e 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"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment