Skip to content

Commit

Permalink
Move spotPrice to CommonAutoScalingProps
Browse files Browse the repository at this point in the history
  • Loading branch information
SoManyHs committed May 24, 2019
1 parent c321d2d commit 99a8cba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions packages/@aws-cdk/aws-ecs/lib/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-ecs/test/test.ecs-cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down

0 comments on commit 99a8cba

Please sign in to comment.