Skip to content

Commit d2b16af

Browse files
author
Lachlan Donald
authored
Merge pull request #591 from buildkite/fix-instance-market-options-in-launch-template
Fix incorrect yaml syntax for spot instances
2 parents 705cc59 + 09fb9d3 commit d2b16af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/aws-stack.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -706,10 +706,10 @@ Resources:
706706
IamInstanceProfile:
707707
Arn: !GetAtt "IAMInstanceProfile.Arn"
708708
InstanceType: !Ref InstanceType
709-
MarketType: !If [ "UseSpotInstances", "spot", !Ref 'AWS::NoValue' ]
710-
SpotOptions: !If
709+
InstanceMarketOptions: !If
711710
- UseSpotInstances
712-
- SpotOptions:
711+
- MarketType: spot
712+
SpotOptions:
713713
MaxPrice: !Ref SpotPrice
714714
- !Ref "AWS::NoValue"
715715
ImageId: !If [ UseDefaultAMI, !FindInMap [ AWSRegion2AMI, !Ref 'AWS::Region', !Ref InstanceOperatingSystem ], !Ref ImageId ]

0 commit comments

Comments
 (0)