Skip to content
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/autoscaling_group: remove diffsuppressfunc interfering with attribute settings #13623

Merged
merged 1 commit into from
Jun 8, 2020

Conversation

anGie44
Copy link
Contributor

@anGie44 anGie44 commented Jun 4, 2020

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #7368

Release note for CHANGELOG:

resource/autoscaling_group: remove DiffSuppressFunc applied to instances_distribution block
resource/autoscaling_group: update behaviors of inner block fields to disable drift detection and remove unneeded defaults

Output from acceptance testing:

--- PASS: TestAccAWSAutoScalingGroup_MaxInstanceLifetime (50.98s)
--- PASS: TestAccAWSAutoScalingGroup_namePrefix (51.01s)
--- PASS: TestAccAWSAutoScalingGroup_autoGeneratedName (54.01s)
--- PASS: TestAccAWSAutoScalingGroup_VpcUpdates (75.05s)
--- PASS: TestAccAWSAutoScalingGroup_emptyAvailabilityZones (80.66s)
--- PASS: TestAccAWSAutoScalingGroup_classicVpcZoneIdentifier (85.98s)
--- PASS: TestAccAWSAutoScalingGroup_serviceLinkedRoleARN (101.29s)
--- PASS: TestAccAWSAutoScalingGroup_withMetrics (104.75s)
--- PASS: TestAccAWSAutoScalingGroup_LaunchTemplate_IAMInstanceProfile (55.52s)
--- PASS: TestAccAWSAutoScalingGroup_launchTemplate (74.33s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandAllocationStrategy (46.15s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy (79.46s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotInstancePools (41.52s)
--- PASS: TestAccAWSAutoScalingGroup_withPlacementGroup (176.60s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotAllocationStrategy (52.70s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_UpdateToZeroOnDemandBaseCapacity (75.91s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandBaseCapacity (82.67s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandPercentageAboveBaseCapacity (74.62s)
--- PASS: TestAccAWSAutoScalingGroup_TargetGroupArns (207.50s)
--- PASS: TestAccAWSAutoScalingGroup_launchTemplate_update (163.49s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_LaunchTemplateSpecification_LaunchTemplateName (42.21s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_Override_InstanceType (43.81s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_LaunchTemplateSpecification_Version (48.62s)
--- PASS: TestAccAWSAutoScalingGroup_suspendingProcesses (231.75s)
--- PASS: TestAccAWSAutoScalingGroup_terminationPolicies (233.95s)
--- PASS: TestAccAWSAutoScalingGroup_basic (235.22s)
--- PASS: TestAccAWSAutoScalingGroup_launchTempPartitionNum (52.22s)
--- PASS: TestAccAWSAutoScalingGroup_tags (265.26s)
--- PASS: TestAccAWSAutoScalingGroup_initialLifecycleHook (319.96s)
--- PASS: TestAccAWSAutoScalingGroup_enablingMetrics (321.23s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotMaxPrice (162.43s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_Override_WeightedCapacity (143.70s)
--- PASS: TestAccAWSAutoScalingGroup_ALB_TargetGroups_ELBCapacity (327.11s)
--- PASS: TestAccAWSAutoScalingGroup_WithLoadBalancer_ToTargetGroup (335.62s)
--- PASS: TestAccAWSAutoScalingGroup_WithLoadBalancer (345.19s)
--- PASS: TestAccAWSAutoScalingGroup_ALB_TargetGroups (383.85s)
--- PASS: TestAccAWSAutoScalingGroup_LoadBalancers (575.33s)

@ghost ghost added size/M Managed by automation to categorize the size of a PR. service/autoscaling Issues and PRs that pertain to the autoscaling service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Jun 4, 2020
@anGie44 anGie44 marked this pull request as ready for review June 4, 2020 22:15
@anGie44 anGie44 requested a review from a team June 4, 2020 22:15
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

Output from acceptance testing:

--- PASS: TestAccAWSAutoScalingGroup_namePrefix (48.16s)
--- PASS: TestAccAWSAutoScalingGroup_MaxInstanceLifetime (55.78s)
--- PASS: TestAccAWSAutoScalingGroup_VpcUpdates (67.43s)
--- PASS: TestAccAWSAutoScalingGroup_terminationPolicies (81.60s)
--- PASS: TestAccAWSAutoScalingGroup_serviceLinkedRoleARN (82.95s)
--- PASS: TestAccAWSAutoScalingGroup_emptyAvailabilityZones (87.00s)
--- PASS: TestAccAWSAutoScalingGroup_withMetrics (95.38s)
--- PASS: TestAccAWSAutoScalingGroup_autoGeneratedName (97.41s)
--- PASS: TestAccAWSAutoScalingGroup_classicVpcZoneIdentifier (106.25s)
--- PASS: TestAccAWSAutoScalingGroup_launchTemplate (65.74s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy (51.55s)
--- PASS: TestAccAWSAutoScalingGroup_ALB_TargetGroups (137.68s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_UpdateToZeroOnDemandBaseCapacity (45.07s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandBaseCapacity (51.30s)
--- PASS: TestAccAWSAutoScalingGroup_withPlacementGroup (165.92s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotInstancePools (46.04s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandPercentageAboveBaseCapacity (74.38s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_LaunchTemplateSpecification_LaunchTemplateName (39.55s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandAllocationStrategy (96.41s)
--- PASS: TestAccAWSAutoScalingGroup_enablingMetrics (188.36s)
--- PASS: TestAccAWSAutoScalingGroup_launchTemplate_update (148.24s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotMaxPrice (70.21s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_Override_InstanceType (48.06s)
--- PASS: TestAccAWSAutoScalingGroup_initialLifecycleHook (228.58s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotAllocationStrategy (135.10s)
--- PASS: TestAccAWSAutoScalingGroup_launchTempPartitionNum (78.80s)
--- PASS: TestAccAWSAutoScalingGroup_TargetGroupArns (261.19s)
--- PASS: TestAccAWSAutoScalingGroup_suspendingProcesses (273.94s)
--- PASS: TestAccAWSAutoScalingGroup_basic (285.83s)
--- PASS: TestAccAWSAutoScalingGroup_ALB_TargetGroups_ELBCapacity (286.20s)
--- PASS: TestAccAWSAutoScalingGroup_tags (287.48s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_LaunchTemplateSpecification_Version (157.67s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_Override_WeightedCapacity (134.96s)
--- PASS: TestAccAWSAutoScalingGroup_WithLoadBalancer (345.91s)
--- PASS: TestAccAWSAutoScalingGroup_WithLoadBalancer_ToTargetGroup (387.84s)
--- PASS: TestAccAWSAutoScalingGroup_LaunchTemplate_IAMInstanceProfile (443.77s)
--- PASS: TestAccAWSAutoScalingGroup_LoadBalancers (641.74s)

@anGie44 anGie44 merged commit b7924ad into master Jun 8, 2020
@anGie44 anGie44 deleted the ap_autoscaling_group branch June 8, 2020 15:11
@anGie44 anGie44 added this to the v2.66.0 milestone Jun 8, 2020
anGie44 added a commit that referenced this pull request Jun 8, 2020
@ghost
Copy link

ghost commented Jun 12, 2020

This has been released in version 2.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 for triage. Thanks!

@ghost
Copy link

ghost commented Jul 8, 2020

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!

@ghost ghost locked and limited conversation to collaborators Jul 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/autoscaling Issues and PRs that pertain to the autoscaling service. size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws_autoscaling_group bug - fail to set OnDemandBaseCapacity value to zero
2 participants