-
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
[TechDebt]: Investigate unreturned sdkdiags.AppendErrorf
function calls
#38769
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
terraform-provider-aws/internal/service/workspaces/ip_group.go Lines 153 to 181 in 394da59
|
terraform-provider-aws/internal/service/ssm/patch_baseline.go Lines 434 to 438 in 394da59
|
terraform-provider-aws/internal/service/rds/cluster.go Lines 772 to 777 in 394da59
|
After investigating patterns in the remaining files where the result of this function is re-written to the % rg "sdkdiag\.AppendErrorf" internal/service/*/*.go | rg -v "return" | rg -v "diags \= sdkdiag\.AppendErrorf"
internal/service/rolesanywhere/profile.go: sdkdiag.AppendErrorf(diags, "enabling RolesAnywhere Profile (%s): %s", d.Id(), err)
internal/service/rolesanywhere/profile.go: sdkdiag.AppendErrorf(diags, "disabling RolesAnywhere Profile (%s): %s", d.Id(), err)
internal/service/s3/bucket_lifecycle_configuration.go: sdkdiag.AppendErrorf(diags, "waiting for S3 Bucket Lifecycle Configuration (%s) create: %s", d.Id(), err)
internal/service/s3/bucket_lifecycle_configuration.go: sdkdiag.AppendErrorf(diags, "waiting for S3 Bucket Lifecycle Configuration (%s) update: %s", d.Id(), err)
internal/service/rolesanywhere/trust_anchor.go: sdkdiag.AppendErrorf(diags, "enabling RolesAnywhere Trust Anchor (%s): %s", d.Id(), err)
internal/service/rolesanywhere/trust_anchor.go: sdkdiag.AppendErrorf(diags, "disabling RolesAnywhere Trust Anchor (%s): %s", d.Id(), err)
internal/service/fms/policy.go: sdkdiag.AppendErrorf(diags, "setting exclude_map: %s", err)
internal/service/fms/policy.go: sdkdiag.AppendErrorf(diags, "setting include_map: %s", err)
internal/service/fms/policy.go: sdkdiag.AppendErrorf(diags, "setting resource_tags: %s", err)
internal/service/fms/policy.go: sdkdiag.AppendErrorf(diags, "setting security_service_policy_data: %s", err)
internal/service/ecs/cluster_capacity_providers.go: sdkdiag.AppendErrorf(diags, "[WARN] ECS Cluster Capacity Providers (%s) not found, removing from state", d.Id())
internal/service/controltower/landing_zone.go: sdkdiag.AppendErrorf(diags, "waiting for ControlTower Landing Zone (%s) delete: %s", d.Id(), err)
internal/service/appstream/stack.go: sdkdiag.AppendErrorf(diags, "updating Appstream Stack (%s): %s", d.Id(), err)
internal/service/acm/certificate_data_source.go: sdkdiag.AppendErrorf(diags, "XXX no ACM Certificate matching domain (%s)", domain) |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.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 issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
In most cases, calls to
sdkdiags.AppendErrorf
include an unrecoverable error which should cause the containing CRUD method to return. In some instances thereturn
has been unintentionally omitted, causing unexpected behavior (see #38353). We should investigate additional places where calls to this function are unreturned to ensure this behavior is intentional and correct.internal/service/workspaces/ip_group.go
internal/service/ssm/patch_baseline.go
internal/service/rds/cluster.go
internal/service/rolesanywhere/trust_anchor.go
internal/service/s3/bucket_lifecycle_configuration.go
internal/service/rds/instance.go
internal/service/rolesanywhere/profile.go
internal/service/ecs/cluster_capacity_providers.go
internal/service/eks/addon.go
internal/service/fms/policy.go
internal/service/controltower/landing_zone.go
internal/service/elbv2/trust_store_revocation.go
internal/service/acm/certificate_data_source.go
internal/service/comprehend/document_classifier.go
internal/service/appstream/stack.go
internal/service/comprehend/entity_recognizer.go
References
Relates #38756
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: