Direct Terraform to replace the SageMaker endpoint using the -replace option.
Observe an error.
Find in the debug log the reason - Terraform decides that the endpoint is deleted while the describe API returns "EndpointStatus":"Deleting".
Debug Output
codebuild_terraform_debug.txt.zip
Here is a TF debug log.
It includes CodeBuild header and footer messages.
Output was redacted to replace real account IDs, projects, and org names.
Panic Output
No response
Important Factoids
I may try to fix this in case someone suggest a way. I failed to find the reason in the code...
The logs part that is showing the reason:
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.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.9.6
AWS Provider Version
5.75.0
Affected Resource(s)
aws_sagemaker_endpoint
Expected Behavior
aws_sagemaker_endpoint recreation successful
Actual Behavior
getting an error: "api error ValidationException: Cannot create already existing endpoint"
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
-replace
option.Debug Output
codebuild_terraform_debug.txt.zip Here is a TF debug log. It includes CodeBuild header and footer messages. Output was redacted to replace real account IDs, projects, and org names.
Panic Output
No response
Important Factoids
I may try to fix this in case someone suggest a way. I failed to find the reason in the code... The logs part that is showing the reason:
References
Theoretically the issue should be somewhere here https://github.com/hashicorp/terraform-provider-aws/blob/v5.75.0/internal/service/sagemaker/endpoint.go#L437
Would you like to implement a fix?
None