From d565c5d0a32bec0f4f67fdf44e1ceb6ca0907704 Mon Sep 17 00:00:00 2001 From: TheDen Date: Fri, 17 Dec 2021 22:46:49 +1100 Subject: [PATCH] add CpuCredits parameter --- templates/aws-stack.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/templates/aws-stack.yml b/templates/aws-stack.yml index 7e003866f..d929e6c3c 100644 --- a/templates/aws-stack.yml +++ b/templates/aws-stack.yml @@ -60,6 +60,7 @@ Metadata: - ImageId - ImageIdParameter - InstanceType + - CpuCredits - EnableInstanceStorage - AgentsPerInstance - KeyName @@ -243,6 +244,13 @@ Parameters: AllowedPattern: "^[\\w\\.]+(,[\\w\\.]*){0,3}$" ConstraintDescription: "must contain 1-4 instance types separated by commas. No space before/after the comma." + CpuCredits: + Description: Credit option for CPU usage of the instance. + AllowedValues: + - standard + - unlimited + Default: "unlimited" + SpotPrice: Description: Maximum spot price to use for the instances, in instance cost per hour. Values >0 will result in 100% of instances being spot. 0 means only use normal (non-spot) instances. This parameter is deprecated - we recommend setting to 0 and using OnDemandPercentage to opt into spot instances. Type: String @@ -931,6 +939,8 @@ Resources: BlockDeviceMappings: - DeviceName: !If [ UseDefaultRootVolumeName, !If [ UseWindowsAgents, /dev/sda1, /dev/xvda ], !Ref RootVolumeName ] Ebs: { VolumeSize: !Ref RootVolumeSize, VolumeType: !Ref RootVolumeType } + CreditSpecification: + CpuCredits: !Ref CpuCredits TagSpecifications: - ResourceType: instance Tags: