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_batch_compute_environment: Better error reporting for INVALID state #21262

Closed
ewbankkit opened this issue Oct 12, 2021 · 2 comments · Fixed by #21281
Closed

r/aws_batch_compute_environment: Better error reporting for INVALID state #21262

ewbankkit opened this issue Oct 12, 2021 · 2 comments · Fixed by #21281
Assignees
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/batch Issues and PRs that pertain to the batch service. sweeper Pertains to changes to or issues with the sweeper.
Milestone

Comments

@ewbankkit
Copy link
Contributor

ewbankkit commented Oct 12, 2021

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue 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 issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

Terraform AWS Provider v3.62.0.

Affected Resource(s)

*aws_batch_compute_environment

Sweeper runs are failing with

- aws_batch_compute_environment: 5 errors occurred:
00:26:51
    * error deleting Batch Compute Environment (tf-acc-test-249518938014937002): error waiting for Batch Compute Environment (tf-acc-test-249518938014937002) delete: unexpected state 'INVALID', wanted target ''. last error: %!s(<nil>)
00:26:51
    * error deleting Batch Compute Environment (tf-acc-test-9132376917071342612): error waiting for Batch Compute Environment (tf-acc-test-9132376917071342612) delete: unexpected state 'INVALID', wanted target ''. last error: %!s(<nil>)
00:26:51
    * error deleting Batch Compute Environment (tf-acc-test-1705481823449091672): error waiting for Batch Compute Environment (tf-acc-test-1705481823449091672) delete: unexpected state 'INVALID', wanted target ''. last error: %!s(<nil>)
00:26:51
    * error deleting Batch Compute Environment (tf-acc-test-7615333999760349610): error waiting for Batch Compute Environment (tf-acc-test-7615333999760349610) delete: unexpected state 'INVALID', wanted target ''. last error: %!s(<nil>)
00:26:51
    * error deleting Batch Compute Environment (tf-acc-test-7492930073958672562): error waiting for Batch Compute Environment (tf-acc-test-7492930073958672562) delete: unexpected state 'INVALID', wanted target ''. last error: %!s(<nil>)

The ComputeEnvironmentDetail structure includes a field

	// A short, human-readable string to provide additional details about the current
	// status of the compute environment.
	StatusReason *string `locationName:"statusReason" type:"string"`

that can provide more information: https://aws.amazon.com/premiumsupport/knowledge-center/batch-invalid-compute-environment/. Return this as lastError.

Relates: #8549.

@github-actions github-actions bot added the service/batch Issues and PRs that pertain to the batch service. label Oct 12, 2021
@ewbankkit ewbankkit added enhancement Requests to existing resources that expand the functionality or scope. sweeper Pertains to changes to or issues with the sweeper. labels Oct 12, 2021
@ewbankkit ewbankkit self-assigned this Oct 13, 2021
@github-actions github-actions bot added this to the v3.63.0 milestone Oct 14, 2021
@github-actions
Copy link

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

@github-actions
Copy link

github-actions bot commented Jun 2, 2022

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 have found a problem that seems similar to this, 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 Jun 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/batch Issues and PRs that pertain to the batch service. sweeper Pertains to changes to or issues with the sweeper.
Projects
None yet
1 participant