-
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: Add Instance Refresh configuration #16678
Conversation
…in-progress refreshes
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.
This looks good to me. The one big-picture design thing I wonder about (probably discussed somewhere previously) is making this a separate resource.
GovCloud acceptance tests
--- PASS: TestAccAWSAutoScalingGroup_ALB_TargetGroups (140.39s)
--- PASS: TestAccAWSAutoScalingGroup_ALB_TargetGroups_ELBCapacity (294.56s)
--- PASS: TestAccAWSAutoScalingGroup_autoGeneratedName (37.50s)
--- PASS: TestAccAWSAutoScalingGroup_basic (220.73s)
--- PASS: TestAccAWSAutoScalingGroup_classicVpcZoneIdentifier (47.64s)
--- PASS: TestAccAWSAutoScalingGroup_enablingMetrics (187.36s)
--- PASS: TestAccAWSAutoScalingGroup_initialLifecycleHook (202.92s)
--- PASS: TestAccAWSAutoScalingGroup_InstanceRefresh_Basic (246.18s)
--- PASS: TestAccAWSAutoScalingGroup_InstanceRefresh_Start (306.84s)
--- PASS: TestAccAWSAutoScalingGroup_InstanceRefresh_Triggers (246.17s)
--- PASS: TestAccAWSAutoScalingGroup_launchTemplate (45.12s)
--- PASS: TestAccAWSAutoScalingGroup_LaunchTemplate_IAMInstanceProfile (84.04s)
--- PASS: TestAccAWSAutoScalingGroup_launchTemplate_update (142.32s)
--- PASS: TestAccAWSAutoScalingGroup_launchTempPartitionNum (75.58s)
--- PASS: TestAccAWSAutoScalingGroup_LoadBalancers (378.82s)
--- PASS: TestAccAWSAutoScalingGroup_MaxInstanceLifetime (84.74s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy (71.42s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_CapacityRebalance (43.13s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandAllocationStrategy (69.09s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandBaseCapacity (104.73s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandPercentageAboveBaseCapacity (79.16s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotAllocationStrategy (82.27s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotInstancePools (80.98s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotMaxPrice (98.13s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_UpdateToZeroOnDemandBaseCapacity (58.78s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_LaunchTemplateSpecification_LaunchTemplateName (58.55s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_LaunchTemplateSpecification_Version (71.81s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_Override_InstanceType (80.98s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_Override_WeightedCapacity (167.82s)
--- PASS: TestAccAWSAutoScalingGroup_namePrefix (62.01s)
--- PASS: TestAccAWSAutoScalingGroup_serviceLinkedRoleARN (65.55s)
--- PASS: TestAccAWSAutoScalingGroup_suspendingProcesses (220.28s)
--- PASS: TestAccAWSAutoScalingGroup_tags (243.97s)
--- PASS: TestAccAWSAutoScalingGroup_TargetGroupArns (210.49s)
--- PASS: TestAccAWSAutoScalingGroup_terminationPolicies (121.54s)
--- PASS: TestAccAWSAutoScalingGroup_VpcUpdates (83.32s)
--- PASS: TestAccAWSAutoScalingGroup_WithLoadBalancer (321.51s)
--- PASS: TestAccAWSAutoScalingGroup_WithLoadBalancer_ToTargetGroup (524.81s)
--- PASS: TestAccAWSAutoScalingGroup_withMetrics (86.68s)
--- PASS: TestAccAWSAutoScalingGroup_withPlacementGroup (150.34s)
Commercial acceptance tests
--- PASS: TestAccAWSAutoScalingGroup_ALB_TargetGroups (185.24s)
--- PASS: TestAccAWSAutoScalingGroup_ALB_TargetGroups_ELBCapacity (316.05s)
--- PASS: TestAccAWSAutoScalingGroup_autoGeneratedName (59.62s)
--- PASS: TestAccAWSAutoScalingGroup_basic (297.64s)
--- PASS: TestAccAWSAutoScalingGroup_classicVpcZoneIdentifier (62.19s)
--- PASS: TestAccAWSAutoScalingGroup_enablingMetrics (187.17s)
--- PASS: TestAccAWSAutoScalingGroup_initialLifecycleHook (241.96s)
--- PASS: TestAccAWSAutoScalingGroup_InstanceRefresh_Basic (194.20s)
--- PASS: TestAccAWSAutoScalingGroup_InstanceRefresh_Start (311.48s)
--- PASS: TestAccAWSAutoScalingGroup_InstanceRefresh_Triggers (220.30s)
--- PASS: TestAccAWSAutoScalingGroup_launchTemplate (48.06s)
--- PASS: TestAccAWSAutoScalingGroup_LaunchTemplate_IAMInstanceProfile (85.56s)
--- PASS: TestAccAWSAutoScalingGroup_launchTemplate_update (189.26s)
--- PASS: TestAccAWSAutoScalingGroup_launchTempPartitionNum (73.98s)
--- PASS: TestAccAWSAutoScalingGroup_LoadBalancers (438.74s)
--- PASS: TestAccAWSAutoScalingGroup_MaxInstanceLifetime (59.74s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy (37.40s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_CapacityRebalance (66.98s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandAllocationStrategy (38.72s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandBaseCapacity (120.54s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandPercentageAboveBaseCapacity (87.55s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotAllocationStrategy (68.28s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotInstancePools (90.50s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotMaxPrice (118.04s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_UpdateToZeroOnDemandBaseCapacity (93.71s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_LaunchTemplateSpecification_LaunchTemplateName (106.26s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_LaunchTemplateSpecification_Version (112.48s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_Override_InstanceType (86.53s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_Override_WeightedCapacity (182.33s)
--- PASS: TestAccAWSAutoScalingGroup_namePrefix (59.24s)
--- PASS: TestAccAWSAutoScalingGroup_serviceLinkedRoleARN (93.20s)
--- PASS: TestAccAWSAutoScalingGroup_suspendingProcesses (219.26s)
--- PASS: TestAccAWSAutoScalingGroup_tags (253.24s)
--- PASS: TestAccAWSAutoScalingGroup_TargetGroupArns (180.20s)
--- PASS: TestAccAWSAutoScalingGroup_terminationPolicies (108.15s)
--- PASS: TestAccAWSAutoScalingGroup_VpcUpdates (92.59s)
--- PASS: TestAccAWSAutoScalingGroup_WithLoadBalancer (239.66s)
--- PASS: TestAccAWSAutoScalingGroup_WithLoadBalancer_ToTargetGroup (405.52s)
--- PASS: TestAccAWSAutoScalingGroup_withMetrics (122.51s)
--- PASS: TestAccAWSAutoScalingGroup_withPlacementGroup (143.66s)
I had a couple reasons for putting this in the resource instead of creating a new resource:
|
This has been released in version 3.22.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 for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Adds Instance Refresh configuration to Auto Scaling Groups. Builds on work done by @roberth-k in #13791 and #14442.
Community Note
Closes #13785
Relates #13791
Closes #14442
Release note for CHANGELOG:
Output from acceptance testing: