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

Retry app autoscaling policy create/update on ObjectNotFound error #8273

Conversation

tomelliff
Copy link
Contributor

Closes #427.

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" comments, they generate extra noise for pull request followers and do not help prioritize the request

Fixes #427

Changes proposed in this pull request:

  • Retry create/update on ObjectNotFoundException.

Not ran acceptance tests because this isn't something that would be caught by them and instead is fixing a race condition in AWS that I've only just hit once out of thousands of deploys.

@ghost ghost added size/XS Managed by automation to categorize the size of a PR. service/applicationautoscaling labels Apr 10, 2019
@bflad bflad added the enhancement Requests to existing resources that expand the functionality or scope. label Apr 10, 2019
@bflad bflad added this to the v2.6.0 milestone Apr 10, 2019
@bflad bflad added bug Addresses a defect in current functionality. and removed enhancement Requests to existing resources that expand the functionality or scope. labels Apr 10, 2019
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, thanks so much @tomelliff 🚀 Sorry I missed this in the midst of closing all the seemingly related Application AutoScaling issues.

Output from acceptance testing:

--- PASS: TestAccAWSAppautoScalingPolicy_spotFleetRequest (64.68s)
--- PASS: TestAccAWSAppautoScalingPolicy_disappears (70.96s)
--- PASS: TestAccAWSAppautoScalingPolicy_basic (71.04s)
--- PASS: TestAccAWSAppautoScalingPolicy_scaleOutAndIn (73.68s)
--- PASS: TestAccAWSAppautoScalingPolicy_ResourceId_ForceNew (90.97s)
--- PASS: TestAccAWSAppautoScalingPolicy_dynamoDb (122.72s)
--- PASS: TestAccAWSAppautoScalingPolicy_multiplePoliciesSameName (123.09s)
--- PASS: TestAccAWSAppautoScalingPolicy_multiplePoliciesSameResource (267.77s)

@bflad bflad merged commit 94c12d4 into hashicorp:master Apr 10, 2019
bflad added a commit that referenced this pull request Apr 10, 2019
@bflad
Copy link
Contributor

bflad commented Apr 11, 2019

This has been released in version 2.6.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@tomelliff
Copy link
Contributor Author

Wow, that was fast :) Thanks @bflad

@ghost
Copy link

ghost commented Mar 30, 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 Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

intermittent issue with aws_appautoscaling_target and aws_appautoscaling_policy creation
2 participants