Skip to content

Commit

Permalink
chore: fix AutoScalingGroup example in README.md (#970)
Browse files Browse the repository at this point in the history
  • Loading branch information
jungseoklee authored and rix0rrr committed Oct 19, 2018
1 parent 666bbba commit d238ffd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/@aws-cdk/aws-autoscaling/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ An `AutoScalingGroup` represents a number of instances on which you run your cod
pick the size of the fleet, the instance type and the OS image:

```ts
import autoscaling = require('@aws-cdk/aws-autoscaling');
import ec2 = require('@aws-cdk/aws-ec2');

new ec2.AutoScalingGroup(stack, 'ASG', {
new autoscaling.AutoScalingGroup(stack, 'ASG', {
vpc,
instanceType: new ec2.InstanceTypePair(InstanceClass.Burstable2, InstanceSize.Micro),
machineImage: new ec2.LinuxImage({
'us-east-1': 'ami-97785bed'
})
machineImage: new ec2.AmazonLinuxImage() // get the latest Amazon Linux image
});
```

Expand Down

0 comments on commit d238ffd

Please sign in to comment.