I’m probably missing something obvious, but when trying to create a mongodbatlas_privatelink_endpoint_service (https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/resources/privatelink_endpoint_service) resource with Terraform, I get the following:
Error: error adding MongoDB Private Service Endpoint Connection(AWS) to a Private Endpoint (XXXXXXXXXXXXXXXXXXXXXXXX): POST https://cloud.mongodb.com/api/atlas/v1.0/groups/XXXXXXXXXXXXXXXXXXXXXXXX/privateEndpoint/AWS/endpointService/vpce-XXXXXXXXXXXXXXXXX/endpoint: 400 (request "PATH_PARAM_PARSE_ERROR") One or more path parameter in the request URI /api/atlas/v1.0/groups/XXXXXXXXXXXXXXXXXXXXXXXX/privateEndpoint/AWS/endpointService/vpce-XXXXXXXXXXXXXXXXX/endpoint is malformed.
Comparing to the API docs (https://docs.atlas.mongodb.com/reference/api/private-endpoints-endpoint-create-one), I see nothing wrong. The debugging output from Terraform (TF_LOG=TRACE) shows that the request includes the correct endpoint ID in the payload.
What am I missing?