-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
resource/aws_servicecatalog_provisioned_product: Return clearer error message on failure #30663
Conversation
Community NoteVoting for Prioritization
For Submitters
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
$ make testacc PKG=servicecatalog TESTS=TestAccServiceCatalogProvisionedProduct_
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/servicecatalog/... -v -count 1 -parallel 20 -run='TestAccServiceCatalogProvisionedProduct_' -timeout 180m
=== RUN TestAccServiceCatalogProvisionedProduct_basic
=== PAUSE TestAccServiceCatalogProvisionedProduct_basic
=== RUN TestAccServiceCatalogProvisionedProduct_update
=== PAUSE TestAccServiceCatalogProvisionedProduct_update
=== RUN TestAccServiceCatalogProvisionedProduct_computedOutputs
=== PAUSE TestAccServiceCatalogProvisionedProduct_computedOutputs
=== RUN TestAccServiceCatalogProvisionedProduct_disappears
=== PAUSE TestAccServiceCatalogProvisionedProduct_disappears
=== RUN TestAccServiceCatalogProvisionedProduct_tags
=== PAUSE TestAccServiceCatalogProvisionedProduct_tags
=== RUN TestAccServiceCatalogProvisionedProduct_errorOnCreate
=== PAUSE TestAccServiceCatalogProvisionedProduct_errorOnCreate
=== RUN TestAccServiceCatalogProvisionedProduct_errorOnUpdate
=== PAUSE TestAccServiceCatalogProvisionedProduct_errorOnUpdate
=== CONT TestAccServiceCatalogProvisionedProduct_basic
=== CONT TestAccServiceCatalogProvisionedProduct_tags
=== CONT TestAccServiceCatalogProvisionedProduct_computedOutputs
=== CONT TestAccServiceCatalogProvisionedProduct_errorOnUpdate
=== CONT TestAccServiceCatalogProvisionedProduct_errorOnCreate
=== CONT TestAccServiceCatalogProvisionedProduct_disappears
=== CONT TestAccServiceCatalogProvisionedProduct_update
--- PASS: TestAccServiceCatalogProvisionedProduct_errorOnCreate (53.83s)
--- PASS: TestAccServiceCatalogProvisionedProduct_disappears (133.85s)
--- PASS: TestAccServiceCatalogProvisionedProduct_basic (134.79s)
--- PASS: TestAccServiceCatalogProvisionedProduct_tags (229.65s)
--- PASS: TestAccServiceCatalogProvisionedProduct_update (232.50s)
--- PASS: TestAccServiceCatalogProvisionedProduct_computedOutputs (247.29s)
--- PASS: TestAccServiceCatalogProvisionedProduct_errorOnUpdate (270.94s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/servicecatalog 277.528s
This functionality has been released in v4.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! |
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. |
Description
When Provisioned Product fails to apply, it either returns a status of
ERROR
on creation onTAINTED
on update when it can roll back to a previous version.Return the error information to the practitioner so that they know it has failed. Also return the error as a top-level error instead of buried in an "unexpected state" error.
Relations
Supersedes #30522
Output from Acceptance Testing