-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resource/aws_autoscaling_group: Fix autoscaling groups stuck in pending
instance refresh
#21777
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccAutoScalingGroup_' PKG_NAME=internal/service/autoscaling
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/autoscaling/... -v -count 1 -parallel 20 -run=TestAccAutoScalingGroup_ -timeout 180m
=== RUN TestAccAutoScalingGroup_basic
=== PAUSE TestAccAutoScalingGroup_basic
=== RUN TestAccAutoScalingGroup_Name_generated
=== PAUSE TestAccAutoScalingGroup_Name_generated
=== RUN TestAccAutoScalingGroup_namePrefix
=== PAUSE TestAccAutoScalingGroup_namePrefix
=== RUN TestAccAutoScalingGroup_terminationPolicies
=== PAUSE TestAccAutoScalingGroup_terminationPolicies
=== RUN TestAccAutoScalingGroup_tags
=== PAUSE TestAccAutoScalingGroup_tags
=== RUN TestAccAutoScalingGroup_vpcUpdates
=== PAUSE TestAccAutoScalingGroup_vpcUpdates
=== RUN TestAccAutoScalingGroup_withLoadBalancer
=== PAUSE TestAccAutoScalingGroup_withLoadBalancer
=== RUN TestAccAutoScalingGroup_WithLoadBalancer_toTargetGroup
=== PAUSE TestAccAutoScalingGroup_WithLoadBalancer_toTargetGroup
=== RUN TestAccAutoScalingGroup_withPlacementGroup
=== PAUSE TestAccAutoScalingGroup_withPlacementGroup
=== RUN TestAccAutoScalingGroup_enablingMetrics
=== PAUSE TestAccAutoScalingGroup_enablingMetrics
=== RUN TestAccAutoScalingGroup_suspendingProcesses
=== PAUSE TestAccAutoScalingGroup_suspendingProcesses
=== RUN TestAccAutoScalingGroup_withMetrics
=== PAUSE TestAccAutoScalingGroup_withMetrics
=== RUN TestAccAutoScalingGroup_serviceLinkedRoleARN
=== PAUSE TestAccAutoScalingGroup_serviceLinkedRoleARN
=== RUN TestAccAutoScalingGroup_maxInstanceLifetime
=== PAUSE TestAccAutoScalingGroup_maxInstanceLifetime
=== RUN TestAccAutoScalingGroup_ALB_targetGroups
=== PAUSE TestAccAutoScalingGroup_ALB_targetGroups
=== RUN TestAccAutoScalingGroup_targetGroupARNs
=== PAUSE TestAccAutoScalingGroup_targetGroupARNs
=== RUN TestAccAutoScalingGroup_initialLifecycleHook
=== PAUSE TestAccAutoScalingGroup_initialLifecycleHook
=== RUN TestAccAutoScalingGroup_ALBTargetGroups_elbCapacity
=== PAUSE TestAccAutoScalingGroup_ALBTargetGroups_elbCapacity
=== RUN TestAccAutoScalingGroup_InstanceRefresh_basic
=== PAUSE TestAccAutoScalingGroup_InstanceRefresh_basic
=== RUN TestAccAutoScalingGroup_InstanceRefresh_start
=== PAUSE TestAccAutoScalingGroup_InstanceRefresh_start
=== RUN TestAccAutoScalingGroup_InstanceRefresh_triggers
=== PAUSE TestAccAutoScalingGroup_InstanceRefresh_triggers
=== RUN TestAccAutoScalingGroup_warmPool
=== PAUSE TestAccAutoScalingGroup_warmPool
=== RUN TestAccAutoScalingGroup_classicVPCZoneIdentifier
=== PAUSE TestAccAutoScalingGroup_classicVPCZoneIdentifier
=== RUN TestAccAutoScalingGroup_launchTemplate
=== PAUSE TestAccAutoScalingGroup_launchTemplate
=== RUN TestAccAutoScalingGroup_LaunchTemplate_update
=== PAUSE TestAccAutoScalingGroup_LaunchTemplate_update
=== RUN TestAccAutoScalingGroup_LaunchTemplate_iamInstanceProfile
=== PAUSE TestAccAutoScalingGroup_LaunchTemplate_iamInstanceProfile
=== RUN TestAccAutoScalingGroup_loadBalancers
=== PAUSE TestAccAutoScalingGroup_loadBalancers
=== RUN TestAccAutoScalingGroup_mixedInstancesPolicy
=== PAUSE TestAccAutoScalingGroup_mixedInstancesPolicy
=== RUN TestAccAutoScalingGroup_MixedInstancesPolicy_capacityRebalance
=== PAUSE TestAccAutoScalingGroup_MixedInstancesPolicy_capacityRebalance
=== RUN TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_onDemandAllocationStrategy
=== PAUSE TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_onDemandAllocationStrategy
=== RUN TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_onDemandBaseCapacity
=== PAUSE TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_onDemandBaseCapacity
=== RUN TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_updateToZeroOnDemandBaseCapacity
=== PAUSE TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_updateToZeroOnDemandBaseCapacity
=== RUN TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_onDemandPercentageAboveBaseCapacity
=== PAUSE TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_onDemandPercentageAboveBaseCapacity
=== RUN TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_spotAllocationStrategy
=== PAUSE TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_spotAllocationStrategy
=== RUN TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_spotInstancePools
=== PAUSE TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_spotInstancePools
=== RUN TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_spotMaxPrice
=== PAUSE TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_spotMaxPrice
=== RUN TestAccAutoScalingGroup_MixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification_launchTemplateName
=== PAUSE TestAccAutoScalingGroup_MixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification_launchTemplateName
=== RUN TestAccAutoScalingGroup_MixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification_version
=== PAUSE TestAccAutoScalingGroup_MixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification_version
=== RUN TestAccAutoScalingGroup_MixedInstancesPolicyLaunchTemplateOverride_instanceType
=== PAUSE TestAccAutoScalingGroup_MixedInstancesPolicyLaunchTemplateOverride_instanceType
=== RUN TestAccAutoScalingGroup_MixedInstancesPolicyLaunchTemplateOverride_instanceTypeWithLaunchTemplateSpecification
=== PAUSE TestAccAutoScalingGroup_MixedInstancesPolicyLaunchTemplateOverride_instanceTypeWithLaunchTemplateSpecification
=== RUN TestAccAutoScalingGroup_MixedInstancesPolicyLaunchTemplateOverride_weightedCapacity
=== PAUSE TestAccAutoScalingGroup_MixedInstancesPolicyLaunchTemplateOverride_weightedCapacity
=== RUN TestAccAutoScalingGroup_launchTempPartitionNum
=== PAUSE TestAccAutoScalingGroup_launchTempPartitionNum
=== CONT TestAccAutoScalingGroup_basic
=== CONT TestAccAutoScalingGroup_initialLifecycleHook
=== CONT TestAccAutoScalingGroup_WithLoadBalancer_toTargetGroup
=== CONT TestAccAutoScalingGroup_enablingMetrics
=== CONT TestAccAutoScalingGroup_launchTempPartitionNum
=== CONT TestAccAutoScalingGroup_MixedInstancesPolicyLaunchTemplateOverride_weightedCapacity
=== CONT TestAccAutoScalingGroup_MixedInstancesPolicyLaunchTemplateOverride_instanceTypeWithLaunchTemplateSpecification
=== CONT TestAccAutoScalingGroup_MixedInstancesPolicyLaunchTemplateOverride_instanceType
=== CONT TestAccAutoScalingGroup_MixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification_version
=== CONT TestAccAutoScalingGroup_MixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification_launchTemplateName
=== CONT TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_spotMaxPrice
=== CONT TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_spotInstancePools
=== CONT TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_spotAllocationStrategy
=== CONT TestAccAutoScalingGroup_tags
=== CONT TestAccAutoScalingGroup_withPlacementGroup
=== CONT TestAccAutoScalingGroup_withMetrics
=== CONT TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_onDemandPercentageAboveBaseCapacity
=== CONT TestAccAutoScalingGroup_suspendingProcesses
=== CONT TestAccAutoScalingGroup_terminationPolicies
=== CONT TestAccAutoScalingGroup_serviceLinkedRoleARN
--- PASS: TestAccAutoScalingGroup_serviceLinkedRoleARN (79.18s)
=== CONT TestAccAutoScalingGroup_withLoadBalancer
--- PASS: TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_spotAllocationStrategy (80.34s)
=== CONT TestAccAutoScalingGroup_namePrefix
--- PASS: TestAccAutoScalingGroup_MixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification_launchTemplateName (86.44s)
=== CONT TestAccAutoScalingGroup_LaunchTemplate_update
--- PASS: TestAccAutoScalingGroup_launchTempPartitionNum (88.59s)
=== CONT TestAccAutoScalingGroup_Name_generated
--- PASS: TestAccAutoScalingGroup_MixedInstancesPolicyLaunchTemplateOverride_instanceTypeWithLaunchTemplateSpecification (95.72s)
=== CONT TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_updateToZeroOnDemandBaseCapacity
--- PASS: TestAccAutoScalingGroup_withMetrics (129.41s)
=== CONT TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_onDemandBaseCapacity
--- PASS: TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_spotInstancePools (136.11s)
=== CONT TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_onDemandAllocationStrategy
--- PASS: TestAccAutoScalingGroup_MixedInstancesPolicyLaunchTemplateOverride_instanceType (138.33s)
=== CONT TestAccAutoScalingGroup_vpcUpdates
--- PASS: TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_onDemandPercentageAboveBaseCapacity (138.58s)
=== CONT TestAccAutoScalingGroup_MixedInstancesPolicy_capacityRebalance
--- PASS: TestAccAutoScalingGroup_MixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification_version (138.66s)
=== CONT TestAccAutoScalingGroup_mixedInstancesPolicy
=== CONT TestAccAutoScalingGroup_ALB_targetGroups
--- PASS: TestAccAutoScalingGroup_namePrefix (67.38s)
--- PASS: TestAccAutoScalingGroup_withPlacementGroup (155.78s)
=== CONT TestAccAutoScalingGroup_targetGroupARNs
--- PASS: TestAccAutoScalingGroup_Name_generated (69.77s)
=== CONT TestAccAutoScalingGroup_maxInstanceLifetime
--- PASS: TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_spotMaxPrice (180.02s)
=== CONT TestAccAutoScalingGroup_loadBalancers
--- PASS: TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_onDemandAllocationStrategy (72.22s)
=== CONT TestAccAutoScalingGroup_InstanceRefresh_triggers
--- PASS: TestAccAutoScalingGroup_mixedInstancesPolicy (69.82s)
=== CONT TestAccAutoScalingGroup_launchTemplate
--- PASS: TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_updateToZeroOnDemandBaseCapacity (115.61s)
=== CONT TestAccAutoScalingGroup_classicVPCZoneIdentifier
--- PASS: TestAccAutoScalingGroup_MixedInstancesPolicy_capacityRebalance (79.32s)
=== CONT TestAccAutoScalingGroup_LaunchTemplate_iamInstanceProfile
--- PASS: TestAccAutoScalingGroup_terminationPolicies (220.84s)
=== CONT TestAccAutoScalingGroup_InstanceRefresh_basic
--- PASS: TestAccAutoScalingGroup_MixedInstancesPolicyLaunchTemplateOverride_weightedCapacity (227.80s)
=== CONT TestAccAutoScalingGroup_ALBTargetGroups_elbCapacity
--- PASS: TestAccAutoScalingGroup_enablingMetrics (238.09s)
=== CONT TestAccAutoScalingGroup_InstanceRefresh_start
--- PASS: TestAccAutoScalingGroup_launchTemplate (57.25s)
=== CONT TestAccAutoScalingGroup_warmPool
--- PASS: TestAccAutoScalingGroup_maxInstanceLifetime (112.71s)
--- PASS: TestAccAutoScalingGroup_vpcUpdates (135.03s)
--- PASS: TestAccAutoScalingGroup_classicVPCZoneIdentifier (62.34s)
--- PASS: TestAccAutoScalingGroup_MixedInstancesPolicyInstancesDistribution_onDemandBaseCapacity (157.97s)
--- PASS: TestAccAutoScalingGroup_initialLifecycleHook (289.38s)
--- PASS: TestAccAutoScalingGroup_LaunchTemplate_iamInstanceProfile (76.29s)
--- PASS: TestAccAutoScalingGroup_suspendingProcesses (302.51s)
--- PASS: TestAccAutoScalingGroup_basic (323.84s)
--- PASS: TestAccAutoScalingGroup_LaunchTemplate_update (240.95s)
--- PASS: TestAccAutoScalingGroup_ALB_targetGroups (193.71s)
--- PASS: TestAccAutoScalingGroup_targetGroupARNs (209.48s)
--- PASS: TestAccAutoScalingGroup_InstanceRefresh_triggers (220.95s)
--- PASS: TestAccAutoScalingGroup_tags (460.31s)
--- PASS: TestAccAutoScalingGroup_InstanceRefresh_basic (256.86s)
--- PASS: TestAccAutoScalingGroup_withLoadBalancer (404.39s)
--- PASS: TestAccAutoScalingGroup_InstanceRefresh_start (250.93s)
--- PASS: TestAccAutoScalingGroup_WithLoadBalancer_toTargetGroup (491.47s)
--- PASS: TestAccAutoScalingGroup_loadBalancers (362.30s)
--- PASS: TestAccAutoScalingGroup_ALBTargetGroups_elbCapacity (367.83s)
--- PASS: TestAccAutoScalingGroup_warmPool (591.59s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/autoscaling 863.969s
This functionality has been released in v3.66.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
When an instance refresh is triggered, an empty
checkpoint_percentages
array is sent, causing the refresh to hang.Closes #21656
Output from acceptance testing: