Skip to content

Commit

Permalink
I think I figured it out now.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Aug 5, 2018
1 parent 5b9a0d0 commit 292543e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .ebextensions/00-resources.config

This file was deleted.

11 changes: 11 additions & 0 deletions .ebextensions/00-spot.config
@@ -0,0 +1,11 @@
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html

Resources:
AWSEBAutoScalingLaunchConfiguration:
Type: "AWS::AutoScaling::LaunchConfiguration"
Properties:
SpotPrice:
"Fn::GetOptionSetting":
Namespace: "aws:elasticbeanstalk:application:environment"
OptionName: "EC2_SPOT_PRICE"
DefaultValue: {"Ref":"AWS::NoValue"}
10 changes: 10 additions & 0 deletions .ebextensions/defaults.config
@@ -0,0 +1,10 @@
# https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options.html
# https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html

option_settings:
- namespace: aws:autoscaling:launchconfiguration
option_name: RootVolumeType
value: standard
- namespace: aws:autoscaling:launchconfiguration
option_name: RootVolumeSize
value: 8

0 comments on commit 292543e

Please sign in to comment.