When you enable faster launching for a Windows AMI, images are pre-provisioned, using snapshots to launch instances up to 65% faster. To create the optimized Windows image, Amazon EC2 launches an instance and runs through Sysprep steps, rebooting as required. Then it creates a set of reserved snapshots that are used for subsequent launches. The reserved snapshots are automatically replenished as they are used, depending on your settings for launch frequency.
See https://www.paws-r-sdk.com/docs/ec2_enable_fast_launch/ for full documentation.
ec2_enable_fast_launch(
ImageId,
ResourceType = NULL,
SnapshotConfiguration = NULL,
LaunchTemplate = NULL,
MaxParallelLaunches = NULL,
DryRun = NULL
)
[required] The ID of the image for which you’re enabling faster launching.
The type of resource to use for pre-provisioning the Windows AMI for
faster launching. Supported values include: snapshot
, which is the
default value.
Configuration settings for creating and managing the snapshots that are
used for pre-provisioning the Windows AMI for faster launching. The
associated ResourceType
must be snapshot
.
The launch template to use when launching Windows instances from pre-provisioned snapshots. Launch template parameters can include either the name or ID of the launch template, but not both.
The maximum number of instances that Amazon EC2 can launch at the same
time to create pre-provisioned snapshots for Windows faster launching.
Value must be 6
or greater.
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.