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

feat(r/aws_autoscaling_group): add max_healthy_percentage arg #34929

Closed

Conversation

rafaelleonardocruz
Copy link

@rafaelleonardocruz rafaelleonardocruz commented Dec 14, 2023

Description

The aws_autoscaling_group resource doesn't supports the attribute max_healthy_percentage at instance_refresh.preferences, which restricts the sensibility of instance-refresh operations.

Relations

References

Output from Acceptance Testing

make testacc TESTS=TestAccAutoScalingGroup_InstanceRefresh PKG=autoscaling
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/autoscaling/... -v -count 1 -parallel 20 -run='TestAccAutoScalingGroup_InstanceRefresh'  -timeout 360m
=== 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_InstanceRefresh_autoRollback
=== PAUSE TestAccAutoScalingGroup_InstanceRefresh_autoRollback
=== CONT  TestAccAutoScalingGroup_InstanceRefresh_basic
=== CONT  TestAccAutoScalingGroup_InstanceRefresh_triggers
=== CONT  TestAccAutoScalingGroup_InstanceRefresh_start
=== CONT  TestAccAutoScalingGroup_InstanceRefresh_autoRollback
--- PASS: TestAccAutoScalingGroup_InstanceRefresh_start (139.94s)
--- PASS: TestAccAutoScalingGroup_InstanceRefresh_autoRollback (148.68s)
--- PASS: TestAccAutoScalingGroup_InstanceRefresh_triggers (157.52s)
--- PASS: TestAccAutoScalingGroup_InstanceRefresh_basic (218.46s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/autoscaling        220.709s
...

Comments:

  • My organization policy doesn't allow me to grant write access to external users in this PR

Copy link

Community Note

Voting for Prioritization

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

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/autoscaling Issues and PRs that pertain to the autoscaling service. size/S Managed by automation to categorize the size of a PR. labels Dec 14, 2023
Copy link

Hey @rafaelleonardocruz 👋 Thank you very much for your contribution! At times, our maintainers need to make direct edits to pull requests in order to help get it ready to be merged. Your current settings do not allow maintainers to make such edits. To help facilitate this, update your pull request to allow such edits as described in GitHub's Allowing changes to a pull request branch created from a fork documentation. (If you're using a fork owned by an organization, your organization may not allow you to change this setting. If that is the case, let us know.)

@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Dec 14, 2023
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome @rafaelleonardocruz 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

@rafaelleonardocruz rafaelleonardocruz changed the title WIP feat(aws_autoscaling_group): add max_healthy_percentage arg WIP feat(r/aws_autoscaling_group): add max_healthy_percentage arg Dec 14, 2023
@rafaelleonardocruz rafaelleonardocruz changed the title WIP feat(r/aws_autoscaling_group): add max_healthy_percentage arg feat(r/aws_autoscaling_group): add max_healthy_percentage arg Dec 14, 2023
@rafaelleonardocruz rafaelleonardocruz marked this pull request as ready for review December 14, 2023 20:55
@justinretzolk justinretzolk added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Dec 18, 2023
@andrewradamis-paay
Copy link
Contributor

Comments:

  • The test case TestAccAutoScalingGroup_InstanceRefresh_autoRollback was failing for me BEFORE my editions, I didn't figure out why.

@rafaelleonardocruz I think your the IAM role you are using is blocking Launch Templates. I'd guess a condition key for autoscaling:UpdateAutoScalingGroup. All tests pass for me:

TF_ACC=1 go test ./internal/service/autoscaling/... -v -count 1 -parallel 20 -run='TestAccAutoScalingGroup_InstanceRefresh'  -timeout 360m
=== 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_InstanceRefresh_autoRollback
=== PAUSE TestAccAutoScalingGroup_InstanceRefresh_autoRollback
=== CONT  TestAccAutoScalingGroup_InstanceRefresh_basic
=== CONT  TestAccAutoScalingGroup_InstanceRefresh_triggers
=== CONT  TestAccAutoScalingGroup_InstanceRefresh_start
=== CONT  TestAccAutoScalingGroup_InstanceRefresh_autoRollback
--- PASS: TestAccAutoScalingGroup_InstanceRefresh_start (139.94s)
--- PASS: TestAccAutoScalingGroup_InstanceRefresh_autoRollback (148.68s)
--- PASS: TestAccAutoScalingGroup_InstanceRefresh_triggers (157.52s)
--- PASS: TestAccAutoScalingGroup_InstanceRefresh_basic (218.46s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/autoscaling        220.709s

Would love to see this feature added, it will save me dozens of seconds a month. Thanks!

@ewbankkit
Copy link
Contributor

This work has been rolled into #34792.

Copy link

github-actions bot commented Feb 2, 2024

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 2, 2024
@rafaelleonardocruz rafaelleonardocruz deleted the f-aws_autoscaling_group branch February 2, 2024 13:55
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. enhancement Requests to existing resources that expand the functionality or scope. service/autoscaling Issues and PRs that pertain to the autoscaling service. size/S 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.

None yet

4 participants