Skip to content

Instantly share code, notes, and snippets.

@obonyojimmy
Forked from rahulmamgain/spot_price.config
Created August 29, 2020 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save obonyojimmy/d2323f7f306fbbd66a44dffdb3a817cb to your computer and use it in GitHub Desktop.
Save obonyojimmy/d2323f7f306fbbd66a44dffdb3a817cb 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