From 99a8cba2af5898600795ed188104c208611a8f2f Mon Sep 17 00:00:00 2001 From: Hsing-Hui Hsu Date: Thu, 23 May 2019 17:19:50 -0700 Subject: [PATCH] Move spotPrice to CommonAutoScalingProps --- packages/@aws-cdk/aws-ecs/lib/cluster.ts | 8 -------- packages/@aws-cdk/aws-ecs/test/test.ecs-cluster.ts | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/@aws-cdk/aws-ecs/lib/cluster.ts b/packages/@aws-cdk/aws-ecs/lib/cluster.ts index 0f144d644b826..c5c96f212f18b 100644 --- a/packages/@aws-cdk/aws-ecs/lib/cluster.ts +++ b/packages/@aws-cdk/aws-ecs/lib/cluster.ts @@ -462,14 +462,6 @@ export interface AddCapacityOptions extends AddAutoScalingGroupCapacityOptions, * @default - Amazon Linux 1 */ readonly machineImage?: ec2.IMachineImageSource; - - /** - * The maximum hourly price to be paid for any Spot Instance launched to fulfill the request. Spot Instances are - * launched when the price you specify exceeds the current Spot market price. - * - * @default none - */ - readonly spotPrice?: string; } export interface NamespaceOptions { diff --git a/packages/@aws-cdk/aws-ecs/test/test.ecs-cluster.ts b/packages/@aws-cdk/aws-ecs/test/test.ecs-cluster.ts index 82c3a46aa6854..4211121e86667 100644 --- a/packages/@aws-cdk/aws-ecs/test/test.ecs-cluster.ts +++ b/packages/@aws-cdk/aws-ecs/test/test.ecs-cluster.ts @@ -265,7 +265,7 @@ export = { "allows specifying spot fleet"(test: Test) { // GIVEN const stack = new cdk.Stack(); - const vpc = new ec2.VpcNetwork(stack, 'MyVpc', {}); + const vpc = new ec2.Vpc(stack, 'MyVpc', {}); const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); cluster.addCapacity('DefaultAutoScalingGroup', {