AWS ec2: Update launch template example links and placeholder values
Summary
Updates reference links, replaces snapshot ID and KMS key ARN placeholders, and removes the --region flag from a create-launch-template example.
Security assessment
The change swaps placeholder KMS key/snapshot values and refreshes documentation links; it references EBS encryption by default but does not fix a specific vulnerability or add new security guidance.
Evidence
- "KmsKeyId":"arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef"
Diff
diff --git a/ec2/latest/devguide/example_ec2_CreateLaunchTemplate_section.md b/ec2/latest/devguide/example_ec2_CreateLaunchTemplate_section.md index abb1d7b..837ea7b 100644 --- a//ec2/latest/devguide/example_ec2_CreateLaunchTemplate_section.md +++ b//ec2/latest/devguide/example_ec2_CreateLaunchTemplate_section.md @@ -129 +129 @@ Output: -For more information, see Launching an Instance from a Launch Template in the _Amazon Elastic Compute Cloud User Guide_. For information about quoting JSON-formatted parameters, see Quoting Strings in the _AWS Command Line Interface User Guide_. +For more information, see [Store instance launch parameters in Amazon EC2 launch templates](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html) in the _Amazon EC2 User Guide_. For information about quoting JSON-formatted parameters, see [Using quotation marks and literals with strings in the AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html) in the _AWS Command Line Interface User Guide_. @@ -139 +139 @@ The following `create-launch-template` example creates a launch template with mu - --launch-template-data '{"NetworkInterfaces":[{"DeviceIndex":0,"AssociatePublicIpAddress":true,"Groups":["sg-7c227019,sg-903004f8"],"DeleteOnTermination":true}],"ImageId":"ami-b42209de","InstanceType":"m4.large","TagSpecifications":[{"ResourceType":"instance","Tags":[{"Key":"environment","Value":"production"},{"Key":"purpose","Value":"webserver"}]},{"ResourceType":"volume","Tags":[{"Key":"environment","Value":"production"},{"Key":"cost-center","Value":"cc123"}]}],"BlockDeviceMappings":[{"DeviceName":"/dev/sda1","Ebs":{"VolumeSize":100}}]}' --region us-east-1 + --launch-template-data '{"NetworkInterfaces":[{"DeviceIndex":0,"AssociatePublicIpAddress":true,"Groups":["sg-7c227019,sg-903004f8"],"DeleteOnTermination":true}],"ImageId":"ami-b42209de","InstanceType":"m4.large","TagSpecifications":[{"ResourceType":"instance","Tags":[{"Key":"environment","Value":"production"},{"Key":"purpose","Value":"webserver"}]},{"ResourceType":"volume","Tags":[{"Key":"environment","Value":"production"},{"Key":"cost-center","Value":"cc123"}]}],"BlockDeviceMappings":[{"DeviceName":"/dev/sda1","Ebs":{"VolumeSize":100}}]}' @@ -156 +156 @@ Output: -For more information, see Creating a Launch Template for an Auto Scaling Group in the _Amazon EC2 Auto Scaling User Guide_. For information about quoting JSON-formatted parameters, see Quoting Strings in the _AWS Command Line Interface User Guide_. +For more information, see [Create a launch template for an Auto Scaling group](https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html) in the _Amazon EC2 Auto Scaling User Guide_. For information about quoting JSON-formatted parameters, see [Using quotation marks and literals with strings in the AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html) in the _AWS Command Line Interface User Guide_. @@ -178 +178 @@ Contents of `config.json`: - "SnapshotId":"snap-066877671789bd71b", + "SnapshotId":"snap-0abcdef1234567890", @@ -180 +180 @@ Contents of `config.json`: - "KmsKeyId":"arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef" + "KmsKeyId":"arn:aws:kms:us-west-2:123456789012:key/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111" @@ -213 +213 @@ Output: -For more information, see Restoring an Amazon EBS Volume from a Snapshot and Encryption by Default in the _Amazon Elastic Compute Cloud User Guide_. +For more information, see [Create an Amazon EBS volume](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-creating-volume.html) and [Enable Amazon EBS encryption by default](https://docs.aws.amazon.com/ebs/latest/userguide/encryption-by-default.html) in the _Amazon EBS User Guide_.