Enable Fast Launch
ec2_enable_fast_launch | R Documentation |
When you enable Windows fast launch for a Windows AMI, images are pre-provisioned, using snapshots to launch instances up to 65% faster¶
Description¶
When you enable Windows fast launch 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.
You can only change these settings for Windows AMIs that you own or that have been shared with you.
Usage¶
ec2_enable_fast_launch(ImageId, ResourceType, SnapshotConfiguration,
LaunchTemplate, MaxParallelLaunches, DryRun)
Arguments¶
ImageId |
[required] Specify the ID of the image for which to enable Windows fast launch. |
ResourceType |
The type of resource to use for pre-provisioning the AMI for
Windows fast launch. Supported values include: |
SnapshotConfiguration |
Configuration settings for creating and managing the snapshots
that are used for pre-provisioning the AMI for Windows fast launch. The
associated |
LaunchTemplate |
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. |
MaxParallelLaunches |
The maximum number of instances that Amazon EC2 can launch at the
same time to create pre-provisioned snapshots for Windows fast launch.
Value must be |
DryRun |
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
|
Value¶
A list with the following syntax:
list(
ImageId = "string",
ResourceType = "snapshot",
SnapshotConfiguration = list(
TargetResourceCount = 123
),
LaunchTemplate = list(
LaunchTemplateId = "string",
LaunchTemplateName = "string",
Version = "string"
),
MaxParallelLaunches = 123,
OwnerId = "string",
State = "enabling"|"enabling-failed"|"enabled"|"enabled-failed"|"disabling"|"disabling-failed",
StateTransitionReason = "string",
StateTransitionTime = as.POSIXct(
"2015-01-01"
)
)
Request syntax¶
svc$enable_fast_launch(
ImageId = "string",
ResourceType = "string",
SnapshotConfiguration = list(
TargetResourceCount = 123
),
LaunchTemplate = list(
LaunchTemplateId = "string",
LaunchTemplateName = "string",
Version = "string"
),
MaxParallelLaunches = 123,
DryRun = TRUE|FALSE
)