Open kylet21 opened 2 weeks ago
Voting for Prioritization
Volunteering to Work on This Issue
Just to add that this is a blatant bug, as the official AWS documentation on UpdateEndpoint clearly states:
Note You must not delete an EndpointConfig in use by an endpoint that is live or while the UpdateEndpoint or CreateEndpoint operations are being performed on the endpoint. To update an endpoint, you must create a new EndpointConfig.
If you delete the EndpointConfig of an endpoint that is active or being created or updated you may lose visibility into the instance type the endpoint is using. The endpoint must be deleted in order to stop incurring charges.
https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_UpdateEndpoint.html
Any suggestions for workarounds until this is fixed?
Terraform Core Version
AWS Provider Version
~> 5.0
Affected Resource(s)
aws_sagemaker_endpoint_configuration aws_sagemaker_endpoint
Expected Behavior
The new sagemaker endpoint configuration is associated with the endpoint, the endpoint transitions to Updating status, and then finally back to active, then the old endpoint configuration is deleted.
Actual Behavior
The endpoint is not updated successfully because the old endpoint configuration is deleted before the endpoint is updated. The error output when viewing the endpoint in the console is:
The endpoint configuration has a lifecycle rule for
create_before_delete
, but that is not helping.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Update the model by providing a new model_data_url and prefix for the resource(s) This will also cause an update to the endpoint_configuration Run a terraform apply to update the endpoint with this new endpoint_configuration and model
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None