@@ -23,32 +23,24 @@ new autoscaling.AutoScalingGroup(stack, 'ASG', {
2323> internet) which is set to ` true ` by default. Be sure to set this to ` false ` if you don't want
2424> your instances to be able to start arbitrary connections.
2525
26- ### AMIs
26+ ### Machine Images ( AMIs)
2727
28- AMIs control the OS that gets launched when you start your instance.
28+ AMIs control the OS that gets launched when you start your EC2 instance. The EC2
29+ library contains constructs to select the AMI you want to use.
2930
3031Depending on the type of AMI, you select it a different way.
3132
32- The latest version of Windows images are regionally published under labels,
33- so you can select Windows images like this :
33+ The latest version of Amazon Linux and Microsoft Windows images are
34+ selectable by instantiating one of these classes :
3435
35- new ec2.WindowsImage(WindowsVersion.WindowsServer2016EnglishNanoBase )
36+ [ example of creating images ] ( test/example.images.lit.ts )
3637
37- You can select the latest Amazon Linux image like this:
38-
39- new ec2.AmazonLinuxImage()
40-
41- Other Linux images are unfortunately not currently published this way, so you have
42- to supply a region-to-AMI map when creating a Linux image:
43-
44- machineImage: new ec2.GenericLinuxImage({
45- 'us-east-1': 'ami-97785bed',
46- 'eu-west-1': 'ami-12345678',
47- // ...
48- })
49-
50- > NOTE: Selecting Linux images will change when the information is published in an automatically
51- > consumable way.
38+ > NOTE: The Amazon Linux images selected will be cached in your ` cdk.json ` , so that your
39+ > AutoScalingGroups don't automatically change out from under you when you're making unrelated
40+ > changes. To update to the latest version of Amazon Linux, remove the cache entry from the ` context `
41+ > section of your ` cdk.json ` .
42+ >
43+ > We will add command-line options to make this step easier in the future.
5244
5345### Allowing Connections
5446
0 commit comments