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

Prevent infinite loop if an API error is returned when waiting for an async operation to complete #510

Merged
merged 3 commits into from
May 19, 2022

Conversation

ewbankkit
Copy link
Contributor

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
  • The resources and data sources in this provider are generated from the CloudFormation schema, so they can only support the actions that the underlying schema supports. For this reason submitted bugs should be limited to defects in the generation and runtime code of the provider. Customizing behavior of the resource, or noting a gap in behavior are not valid bugs and should be submitted as enhancements to AWS via the CloudFormation Open Coverage Roadmap.

Closes #486.

Testing with a resource that exercises the waiter:

% TF_LOG=ERROR make testacc PKG_NAME=internal/aws/ec2 TESTARGS='-run=TestAccAWSEC2VPC_CidrBlock'
TF_ACC=1 go test ./internal/aws/ec2 -v -count 1 -parallel 20 -run=TestAccAWSEC2VPC_CidrBlock -timeout 180m
=== RUN   TestAccAWSEC2VPC_CidrBlock
=== PAUSE TestAccAWSEC2VPC_CidrBlock
=== CONT  TestAccAWSEC2VPC_CidrBlock
--- PASS: TestAccAWSEC2VPC_CidrBlock (36.87s)
PASS
ok  	github.com/hashicorp/terraform-provider-awscc/internal/aws/ec2	37.826s

@ewbankkit ewbankkit added bug runtime-handling Relates to runtime handling and conversion of Terraform configuration to CloudFormation. labels May 19, 2022
Copy link
Contributor

@gdavison gdavison left a comment

Choose a reason for hiding this comment

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

Looks good! 🚀

@ewbankkit ewbankkit merged commit 67a77ce into main May 19, 2022
@ewbankkit ewbankkit deleted the b-return-error-from-waiter branch May 19, 2022 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug runtime-handling Relates to runtime handling and conversion of Terraform configuration to CloudFormation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

awscc - sts token expiry - stuck in "Still Creating"
2 participants