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: reintroduce changes made in #9478 #14064

Merged
merged 3 commits into from
Jul 14, 2020

Conversation

anGie44
Copy link
Contributor

@anGie44 anGie44 commented Jul 6, 2020

…from exported attributes list

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 #3265
Reference #9478

Release note for CHANGELOG:

resource/autoscaling_group: reintroduce changes made in #9478; enable drift detection for target_group_arns and load_balancers

Output from acceptance testing:

--- PASS: TestAccAWSAutoScalingGroup_WithLoadBalancer_ToTargetGroup (389.35s)

--- PASS: TestAccAWSAutoScalingGroup_MaxInstanceLifetime (44.38s)
--- PASS: TestAccAWSAutoScalingGroup_emptyAvailabilityZones (51.23s)
--- PASS: TestAccAWSAutoScalingGroup_autoGeneratedName (72.06s)
--- PASS: TestAccAWSAutoScalingGroup_serviceLinkedRoleARN (78.50s)
--- PASS: TestAccAWSAutoScalingGroup_namePrefix (85.45s)
--- PASS: TestAccAWSAutoScalingGroup_VpcUpdates (91.89s)
--- PASS: TestAccAWSAutoScalingGroup_terminationPolicies (97.87s)
--- PASS: TestAccAWSAutoScalingGroup_withMetrics (109.13s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy (42.31s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandAllocationStrategy (44.36s)
--- PASS: TestAccAWSAutoScalingGroup_LaunchTemplate_IAMInstanceProfile (66.41s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_UpdateToZeroOnDemandBaseCapacity (44.55s)
--- PASS: TestAccAWSAutoScalingGroup_withPlacementGroup (163.88s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandPercentageAboveBaseCapacity (45.58s)
--- PASS: TestAccAWSAutoScalingGroup_enablingMetrics (181.92s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotAllocationStrategy (53.01s)
--- PASS: TestAccAWSAutoScalingGroup_launchTemplate_update (151.65s)
--- PASS: TestAccAWSAutoScalingGroup_suspendingProcesses (203.54s)
--- PASS: TestAccAWSAutoScalingGroup_tags (204.92s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandBaseCapacity (109.52s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_LaunchTemplateSpecification_LaunchTemplateName (44.78s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotInstancePools (81.30s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_Override_InstanceType (41.66s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_LaunchTemplateSpecification_Version (72.72s)
--- PASS: TestAccAWSAutoScalingGroup_launchTempPartitionNum (46.69s)
--- PASS: TestAccAWSAutoScalingGroup_basic (259.97s)
--- PASS: TestAccAWSAutoScalingGroup_classicVpcZoneIdentifier (262.49s)
--- PASS: TestAccAWSAutoScalingGroup_initialLifecycleHook (265.15s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotMaxPrice (135.15s)
--- PASS: TestAccAWSAutoScalingGroup_ALB_TargetGroups (295.39s)
--- PASS: TestAccAWSAutoScalingGroup_launchTemplate (259.13s)
--- PASS: TestAccAWSAutoScalingGroup_ALB_TargetGroups_ELBCapacity (320.66s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_Override_WeightedCapacity (135.33s)
--- PASS: TestAccAWSAutoScalingGroup_WithLoadBalancer (377.59s)
--- PASS: TestAccAWSAutoScalingGroup_TargetGroupArns (401.63s)
--- PASS: TestAccAWSAutoScalingGroup_LoadBalancers (673.21s)
--- PASS: TestAccAWSAutoscalingAttachment_elb (112.57s)
--- PASS: TestAccAWSAutoscalingAttachment_albTargetGroup (139.62s)

@anGie44 anGie44 requested a review from a team July 6, 2020 18:53
@ghost ghost added size/XL 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. documentation Introduces or discusses updates to documentation. labels Jul 6, 2020
@anGie44 anGie44 added this to the v3.0.0 milestone Jul 6, 2020
@anGie44 anGie44 force-pushed the b-autoscaling-groups-target-groups branch from 17a3ee7 to 3be0a55 Compare July 6, 2020 21:23
@ghost ghost added size/S Managed by automation to categorize the size of a PR. and removed size/XL Managed by automation to categorize the size of a PR. labels Jul 6, 2020
@bflad
Copy link
Contributor

bflad commented Jul 6, 2020

The changes for this are looking good so far -- a few little extra things here, since this can unexpectedly change the behavior for a few folks and why we backed this out previously:

  • We will want to ensure the aws_autoscaling_attachment resource documentation notes that the aws_autoscaling_group resource will now require the use of ignore_changes if they are both used in the same Terraform configuration (in addition to adding a yellow box note, might be good to update the example)
  • The aws_autoscaling_attachment resource test configurations likely will require the ignore_changes update to continue passing
  • Can you also please add a section to the Version 3 upgrade guide?

Please reach out if you have any questions!

@anGie44 anGie44 changed the title resource/autoscaling_group: reintroduce changes made in #9478; alphabetize schema fields resource/autoscaling_group: reintroduce changes made in #9478 Jul 7, 2020
@ghost ghost added size/M Managed by automation to categorize the size of a PR. and removed size/S Managed by automation to categorize the size of a PR. labels Jul 9, 2020
@anGie44 anGie44 force-pushed the b-autoscaling-groups-target-groups branch 2 times, most recently from 6612e25 to 1c21f80 Compare July 9, 2020 15:44
@anGie44
Copy link
Contributor Author

anGie44 commented Jul 9, 2020

@bflad, docs and tests updated and ready for review!

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.

Looks great, just one overall suggestion about the example configurations 🚀

Output from acceptance testing:

--- PASS: TestAccAWSAutoscalingAttachment_albTargetGroup (257.88s)
--- PASS: TestAccAWSAutoscalingAttachment_elb (136.01s)

--- PASS: TestAccAWSAutoScalingGroup_ALB_TargetGroups (298.49s)
--- PASS: TestAccAWSAutoScalingGroup_ALB_TargetGroups_ELBCapacity (392.21s)
--- PASS: TestAccAWSAutoScalingGroup_autoGeneratedName (46.67s)
--- PASS: TestAccAWSAutoScalingGroup_basic (265.46s)
--- PASS: TestAccAWSAutoScalingGroup_classicVpcZoneIdentifier (88.34s)
--- PASS: TestAccAWSAutoScalingGroup_emptyAvailabilityZones (92.30s)
--- PASS: TestAccAWSAutoScalingGroup_enablingMetrics (150.31s)
--- PASS: TestAccAWSAutoScalingGroup_initialLifecycleHook (200.02s)
--- PASS: TestAccAWSAutoScalingGroup_launchTemplate (91.44s)
--- PASS: TestAccAWSAutoScalingGroup_LaunchTemplate_IAMInstanceProfile (79.01s)
--- PASS: TestAccAWSAutoScalingGroup_launchTemplate_update (206.82s)
--- PASS: TestAccAWSAutoScalingGroup_launchTempPartitionNum (41.82s)
--- PASS: TestAccAWSAutoScalingGroup_LoadBalancers (677.62s)
--- PASS: TestAccAWSAutoScalingGroup_MaxInstanceLifetime (132.00s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy (43.07s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandAllocationStrategy (115.50s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandBaseCapacity (91.46s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandPercentageAboveBaseCapacity (46.27s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotAllocationStrategy (46.72s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotInstancePools (67.64s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotMaxPrice (80.19s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_UpdateToZeroOnDemandBaseCapacity (43.87s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_LaunchTemplateSpecification_LaunchTemplateName (62.88s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_LaunchTemplateSpecification_Version (49.02s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_Override_InstanceType (43.43s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_Override_WeightedCapacity (140.64s)
--- PASS: TestAccAWSAutoScalingGroup_namePrefix (77.26s)
--- PASS: TestAccAWSAutoScalingGroup_serviceLinkedRoleARN (52.81s)
--- PASS: TestAccAWSAutoScalingGroup_suspendingProcesses (269.20s)
--- PASS: TestAccAWSAutoScalingGroup_tags (270.03s)
--- PASS: TestAccAWSAutoScalingGroup_TargetGroupArns (236.92s)
--- PASS: TestAccAWSAutoScalingGroup_terminationPolicies (141.59s)
--- PASS: TestAccAWSAutoScalingGroup_VpcUpdates (114.18s)
--- PASS: TestAccAWSAutoScalingGroup_WithLoadBalancer (319.77s)
--- PASS: TestAccAWSAutoScalingGroup_WithLoadBalancer_ToTargetGroup (423.38s)
--- PASS: TestAccAWSAutoScalingGroup_withMetrics (287.85s)
--- PASS: TestAccAWSAutoScalingGroup_withPlacementGroup (516.51s)

website/docs/guides/version-3-upgrade.html.md Outdated Show resolved Hide resolved
website/docs/guides/version-3-upgrade.html.md Outdated Show resolved Hide resolved
website/docs/r/autoscaling_attachment.html.markdown Outdated Show resolved Hide resolved
@anGie44 anGie44 force-pushed the b-autoscaling-groups-target-groups branch from bf14259 to dea56b0 Compare July 14, 2020 16:26
@anGie44 anGie44 force-pushed the b-autoscaling-groups-target-groups branch from dea56b0 to 8ff3f98 Compare July 14, 2020 16:35
@anGie44
Copy link
Contributor Author

anGie44 commented Jul 14, 2020

Rebased to incorporate updates in upgrade guide

@anGie44 anGie44 merged commit 897e64c into master Jul 14, 2020
@anGie44 anGie44 deleted the b-autoscaling-groups-target-groups branch July 14, 2020 17:13
anGie44 added a commit that referenced this pull request Jul 14, 2020
@ghost
Copy link

ghost commented Jul 31, 2020

This has been released in version 3.0.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 Aug 14, 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 Aug 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. 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.

Removing target groups from aws_autoscaling_group does not remove it on AWS
2 participants