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

r/aws_autoscaling_group: Add ignore_failed_scaling_activities argument #32914

Merged

Conversation

ewbankkit
Copy link
Contributor

@ewbankkit ewbankkit commented Aug 8, 2023

Description

Adds the ignore_failed_scaling_activities argument to ignore any failed Auto Scaling scaling activities when waiting for capacity.

Relations

Closes #29753.

Output from Acceptance Testing

% make testacc TESTARGS='-run=TestAccAutoScalingGroup_basic\|TestAccAutoScalingGroup_withScalingActivityErrorIncorrectInstanceArchitecture\|TestAccAutoScalingGroup_withScalingActivityErrorPlacementGroupNotSupportedOnInstanceType\|TestAccAutoScalingGroup_withLoadBalancer\|TestAccAutoScalingGroup_simple' PKG=autoscaling ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/autoscaling/... -v -count 1 -parallel 2  -run=TestAccAutoScalingGroup_basic\|TestAccAutoScalingGroup_withScalingActivityErrorIncorrectInstanceArchitecture\|TestAccAutoScalingGroup_withScalingActivityErrorPlacementGroupNotSupportedOnInstanceType\|TestAccAutoScalingGroup_withLoadBalancer\|TestAccAutoScalingGroup_simple -timeout 180m
=== RUN   TestAccAutoScalingGroup_basic
=== PAUSE TestAccAutoScalingGroup_basic
=== RUN   TestAccAutoScalingGroup_simple
=== PAUSE TestAccAutoScalingGroup_simple
=== RUN   TestAccAutoScalingGroup_withLoadBalancer
=== PAUSE TestAccAutoScalingGroup_withLoadBalancer
=== RUN   TestAccAutoScalingGroup_withScalingActivityErrorPlacementGroupNotSupportedOnInstanceType
=== PAUSE TestAccAutoScalingGroup_withScalingActivityErrorPlacementGroupNotSupportedOnInstanceType
=== RUN   TestAccAutoScalingGroup_withScalingActivityErrorIncorrectInstanceArchitecture
=== PAUSE TestAccAutoScalingGroup_withScalingActivityErrorIncorrectInstanceArchitecture
=== RUN   TestAccAutoScalingGroup_withScalingActivityErrorIncorrectInstanceArchitecture_IgnoreFailedScalingActivities
=== PAUSE TestAccAutoScalingGroup_withScalingActivityErrorIncorrectInstanceArchitecture_IgnoreFailedScalingActivities
=== RUN   TestAccAutoScalingGroup_withScalingActivityErrorIncorrectInstanceArchitecture_Recovers
=== PAUSE TestAccAutoScalingGroup_withScalingActivityErrorIncorrectInstanceArchitecture_Recovers
=== CONT  TestAccAutoScalingGroup_basic
=== CONT  TestAccAutoScalingGroup_withScalingActivityErrorIncorrectInstanceArchitecture
--- PASS: TestAccAutoScalingGroup_withScalingActivityErrorIncorrectInstanceArchitecture (33.66s)
=== CONT  TestAccAutoScalingGroup_withLoadBalancer
--- PASS: TestAccAutoScalingGroup_basic (60.20s)
=== CONT  TestAccAutoScalingGroup_withScalingActivityErrorPlacementGroupNotSupportedOnInstanceType
--- PASS: TestAccAutoScalingGroup_withScalingActivityErrorPlacementGroupNotSupportedOnInstanceType (32.36s)
=== CONT  TestAccAutoScalingGroup_simple
--- PASS: TestAccAutoScalingGroup_simple (184.50s)
=== CONT  TestAccAutoScalingGroup_withScalingActivityErrorIncorrectInstanceArchitecture_Recovers
--- PASS: TestAccAutoScalingGroup_withLoadBalancer (285.66s)
=== CONT  TestAccAutoScalingGroup_withScalingActivityErrorIncorrectInstanceArchitecture_IgnoreFailedScalingActivities
--- PASS: TestAccAutoScalingGroup_withScalingActivityErrorIncorrectInstanceArchitecture_IgnoreFailedScalingActivities (155.23s)
--- PASS: TestAccAutoScalingGroup_withScalingActivityErrorIncorrectInstanceArchitecture_Recovers (278.48s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/autoscaling	560.999s

@github-actions
Copy link

github-actions bot commented Aug 8, 2023

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/XL Managed by automation to categorize the size of a PR. and removed 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. labels Aug 8, 2023
@terraform-aws-provider terraform-aws-provider bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Aug 8, 2023
@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. labels Aug 8, 2023
@ewbankkit ewbankkit added the enhancement Requests to existing resources that expand the functionality or scope. label Aug 8, 2023
Copy link
Member

@jar-b jar-b left a 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_basic\|TestAccAutoScalingGroup_withScalingActivityErrorIncorrectInstanceArchitecture\|TestAccAutoScalingGroup_withScalingActivityErrorPlacementGroupNotSupportedOnInstanceType\|TestAccAutoScalingGroup_withLoadBalancer\|TestAccAutoScalingGroup_simple' PKG=autoscaling
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/autoscaling/... -v -count 1 -parallel 20  -run=TestAccAutoScalingGroup_basic\|TestAccAutoScalingGroup_withScalingActivityErrorIncorrectInstanceArchitecture\|TestAccAutoScalingGroup_withScalingActivityErrorPlacementGroupNotSupportedOnInstanceType\|TestAccAutoScalingGroup_withLoadBalancer\|TestAccAutoScalingGroup_simple -timeout 180m

--- PASS: TestAccAutoScalingGroup_withScalingActivityErrorPlacementGroupNotSupportedOnInstanceType (28.06s)
--- PASS: TestAccAutoScalingGroup_withScalingActivityErrorIncorrectInstanceArchitecture (28.68s)
--- PASS: TestAccAutoScalingGroup_basic (52.69s)
--- PASS: TestAccAutoScalingGroup_withScalingActivityErrorIncorrectInstanceArchitecture_IgnoreFailedScalingActivities (152.43s)
--- PASS: TestAccAutoScalingGroup_simple (186.61s)
--- PASS: TestAccAutoScalingGroup_withLoadBalancer (203.88s)
--- PASS: TestAccAutoScalingGroup_withScalingActivityErrorIncorrectInstanceArchitecture_Recovers (246.52s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/autoscaling        249.603s

@ewbankkit ewbankkit merged commit a307e60 into main Aug 9, 2023
52 checks passed
@ewbankkit ewbankkit deleted the f-aws_autoscaling_group.ignore_failed_scaling_activities branch August 9, 2023 15:16
@github-actions github-actions bot added this to the v5.12.0 milestone Aug 9, 2023
github-actions bot pushed a commit that referenced this pull request Aug 9, 2023
@github-actions
Copy link

This functionality has been released in v5.12.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!

@DarwinJS
Copy link

@ewbankkit - thanks for this! I can't find this new parameter in the documentation? https://registry.terraform.io/modules/terraform-aws-modules/autoscaling/aws/latest?tab=inputs
Am I missing it somewhere?

@jar-b
Copy link
Member

jar-b commented Aug 31, 2023

Hi @DarwinJS - the parameter is documented here:
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/autoscaling_group#ignore_failed_scaling_activities

The link you shared is to a module, which is not managed in this repository. I'd suggest opening an issue there to add support for this new parameter:
https://github.com/terraform-aws-modules/terraform-aws-autoscaling

@github-actions
Copy link

github-actions bot commented Oct 1, 2023

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 Oct 1, 2023
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. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. service/autoscaling Issues and PRs that pertain to the autoscaling service. size/XL 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.

[Bug]: wait_for_capacity_timeout is ignored in aws_autoscaling_group in case of insufficient capacity
3 participants