Skip to content

Commit

Permalink
chore: update desiredCapacity in README (#2051)
Browse files Browse the repository at this point in the history
Update `instanceCount` => `desiredCapacity` in ECS README.

Fixes #1926.
  • Loading branch information
rix0rrr authored Mar 19, 2019
1 parent 515868b commit 4941ad2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/@aws-cdk/aws-ecs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const cluster = new ecs.Cluster(this, 'Cluster', {
// Add capacity to it
cluster.addDefaultAutoScalingGroupCapacity('Capacity', {
instanceType: new ec2.InstanceType("t2.xlarge"),
instanceCount: 3,
desiredCapacity: 3,
});

// Instantiate Amazon ECS Service with an automatic load balancer
Expand Down Expand Up @@ -91,7 +91,7 @@ const cluster = new ecs.Cluster(this, 'Cluster', {
// Either add default capacity
cluster.addDefaultAutoScalingGroupCapacity({
instanceType: new ec2.InstanceType("t2.xlarge"),
instanceCount: 3,
desiredCapacity: 3,
});

// Or add customized capacity. Be sure to start the Amazon ECS-optimized AMI.
Expand Down Expand Up @@ -266,7 +266,7 @@ const autoScalingGroup = cluster.addDefaultAutoScalingGroupCapacity({
instanceType: new ec2.InstanceType("t2.xlarge"),
minCapacity: 3,
maxCapacity: 30
instanceCount: 3,
desiredCapacity: 3,

// Give instances 5 minutes to drain running tasks when an instance is
// terminated. This is the default, turn this off by specifying 0 or
Expand Down Expand Up @@ -294,4 +294,3 @@ To start an Amazon ECS task on an Amazon EC2-backed Cluster, instantiate an
## Roadmap

- [ ] Service Discovery Integration
- [ ] Private registry authentication

0 comments on commit 4941ad2

Please sign in to comment.