AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Start-ASInstanceRefresh-AutoScalingGroupName <String>-Preferences_AutoRollback <Boolean>-Preferences_CheckpointDelay <Int32>-Preferences_CheckpointPercentage <Int32[]>-Preferences_InstanceWarmup <Int32>-LaunchTemplate_LaunchTemplateId <String>-LaunchTemplate_LaunchTemplateName <String>-Preferences_MinHealthyPercentage <Int32>-DesiredConfiguration_MixedInstancesPolicy <MixedInstancesPolicy>-Preferences_ScaleInProtectedInstance <ScaleInProtectedInstances>-Preferences_SkipMatching <Boolean>-Preferences_StandbyInstance <StandbyInstances>-Strategy <RefreshStrategy>-LaunchTemplate_Version <String>-Select <String>-PassThru <SwitchParameter>-Force <SwitchParameter>-ClientConfig <AmazonAutoScalingConfig>
Standby
state or protected from scale in. You can monitor for failed EC2 launches using the scaling activities. To find the scaling activities, call the DescribeScalingActivities API.
If you enable auto rollback, your Auto Scaling group will be rolled back automatically when the instance refresh fails. You can enable this feature before starting an instance refresh by specifying the AutoRollback
property in the instance refresh preferences. Otherwise, to roll back an instance refresh before it finishes, use the RollbackInstanceRefresh API. Required? | True |
Position? | 1 |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
LaunchTemplateId
or a LaunchTemplateName
. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | DesiredConfiguration_LaunchTemplate_LaunchTemplateId |
LaunchTemplateId
or a LaunchTemplateName
. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | DesiredConfiguration_LaunchTemplate_LaunchTemplateName |
$Latest
, or $Default
. To get the version number, use the Amazon EC2 DescribeLaunchTemplateVersions API operation. New launch template versions can be created using the Amazon EC2 CreateLaunchTemplateVersion API. If the value is $Latest
, Amazon EC2 Auto Scaling selects the latest version of the launch template when launching instances. If the value is $Default
, Amazon EC2 Auto Scaling selects the default version of the launch template when launching instances. The default value is $Default
. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | DesiredConfiguration_LaunchTemplate_Version |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
false
.A rollback is not supported in the following situations: ImageId
property.$Latest
or $Default
version.Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
CheckpointPercentages
. If you specify a value for CheckpointPercentages
and not for CheckpointDelay
, the CheckpointDelay
defaults to 3600
(1 hour). Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
100
.For usage examples, see Adding checkpoints to an instance refresh in the Amazon EC2 Auto Scaling User Guide. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | Preferences_CheckpointPercentages |
InService
state.This property is not required for normal usage. Instead, use the DefaultInstanceWarmup
property of the Auto Scaling group. The InstanceWarmup
and DefaultInstanceWarmup
properties work the same way. Only specify this property if you must override the DefaultInstanceWarmup
property. If you do not specify this property, the instance warmup by default is the value of the DefaultInstanceWarmup
property, if defined (which is recommended in all cases), or the HealthCheckGracePeriod
property otherwise. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
90
.Setting the minimum healthy percentage to 100 percent limits the rate of replacement to one instance at a time. In contrast, setting it to 0 percent has the effect of replacing all instances at the same time. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | Preferences_ScaleInProtectedInstances |
true
), then Amazon EC2 Auto Scaling skips replacing instances that match the desired configuration. If no desired configuration is specified, then it skips replacing instances that have the same launch template and instance types that the Auto Scaling group was using before the start of the instance refresh. The default is false
.For more information, see Use an instance refresh with skip matching in the Amazon EC2 Auto Scaling User Guide. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Standby
state are found.The following lists the valid values:Standby
.Standby
and continues to replace instances that are in the InService
state.Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | Preferences_StandbyInstances |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Rolling
. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AK |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AWSProfilesLocation, ProfilesLocation |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | StoredCredentials, AWSProfileName |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | RegionToCall |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | SK, SecretAccessKey |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ST |
AWS Tools for PowerShell: 2.x.y.z