AWS ec2 documentation change
Summary
Added PowerShell V5 examples for ImportSnapshot operation with VM disk import details
Security assessment
The change adds snapshot import examples but does not discuss security vulnerabilities or new security features
Diff
diff --git a/ec2/latest/devguide/example_ec2_ImportSnapshot_section.md b/ec2/latest/devguide/example_ec2_ImportSnapshot_section.md index 77476f149..35d302db4 100644 --- a//ec2/latest/devguide/example_ec2_ImportSnapshot_section.md +++ b//ec2/latest/devguide/example_ec2_ImportSnapshot_section.md @@ -82,0 +83,30 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example imports a VM disk image of format 'VMDK' to an Amazon EBS snapshot. The example requires a VM Import Service Role with the default name 'vmimport', with a policy allowing Amazon EC2 access to the specified bucket, as explained in the`VM Import Prequisites` topic in http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/VMImportPrerequisites.html. To use a custom role, specify the role name using the `-RoleName` parameter.** + + + $parms = @{ + "ClientToken"="idempotencyToken" + "Description"="Disk Image Import" + "DiskContainer_Description" = "Data disk" + "DiskContainer_Format" = "VMDK" + "DiskContainer_S3Bucket" = "amzn-s3-demo-bucket" + "DiskContainer_S3Key" = "datadiskimage.vmdk" + } + + Import-EC2Snapshot @parms + + +**Output:** + + + Description ImportTaskId SnapshotTaskDetail + ----------------- -------------------- ------------------ + Disk Image Import import-snap-abcdefgh Amazon.EC2.Model.SnapshotTaskDetail + + * For API details, see [ImportSnapshot](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +