When attempting to configure PrivateLink between Anypoint Private Space and an AWS VPC Endpoint Service (e.g., for a third-party service like Snowflake), you may observe a validation error. This often manifests as a `400` error with the message "doesn't match configuration" in the Anypoint Platform UI.
When attempting to verify the AWS VPC Endpoint Service using the AWS CLI, you might receive an `InvalidServiceName` error, indicating the service does not exist:
```
aws ec2 describe-vpc-endpoint-services --service-names com.amazonaws.vpce.<region>.vpce-svc-<service-id> --region <region>
An error occurred (InvalidServiceName) when calling the DescribeVpcEndpointServices operation: The Vpc Endpoint Service 'com.amazonaws.vpce.<region>.vpce-svc-<service-id>' does not exist
```
CAUSE
This issue occurs when the AWS account ID provided or used for authorizing access to the VPC Endpoint Service does not match the actual owner account ID of that service. Even if the service name and region are correct, the `describe-vpc-endpoint-services` command (and by extension, the PrivateLink configuration process) will fail to identify the service if the calling account is not authorized or if the owner ID specified during configuration is incorrect. The service exists, but it cannot be found or validated by the requesting entity due to an authorization mismatch related to the service owner.
SOLUTION
To resolve this validation error, ensure that the correct AWS account ID that owns the VPC Endpoint Service is identified and used during the PrivateLink configuration.
1. **Verify the VPC Endpoint Service Name and Region:**
Confirm that you have the exact service name (e.g., `com.amazonaws.vpce.<region>.vpce-svc-<service-id>`) and the correct AWS region where the service is deployed. Obtain this information from the provider of the VPC Endpoint Service (e.g., your third-party SaaS provider).
2. **Identify the Correct Owner AWS Account ID:**
Execute the `describe-vpc-endpoint-services` command using an AWS account that has permissions to view VPC Endpoint Services in the specified region. This command will reveal the actual owner account ID of the service.
```bash
aws ec2 describe-vpc-endpoint-services --service-names "com.amazonaws.vpce.<region>.vpce-svc-<service-id>" --region <region>
```
Look for the `"Owner"` field in the output. For example:
```json
{
"ServiceDetails": [
{
"ServiceName": "com.amazonaws.vpce.<region>.vpce-svc-<service-id>",
"ServiceId": "vpce-svc-<service-id>",
"ServiceType": [
{
"ServiceType": "Interface"
}
],
"AvailabilityZones": [
"us-east-1a",
"us-east-1b",
"us-east-1c"
],
"Owner": "correct-owner-account-id",
"BaseEndpointDnsNames": [
"vpce-svc-<service-id>.us-east-1.vpce.amazonaws.com"
],
"VpcEndpointPolicySupported": false
}
]
}
```
The value of `"Owner"` (e.g., `correct-owner-account-id`) is the AWS account ID that owns the VPC Endpoint Service.
3. **Update PrivateLink Configuration with the Correct Owner ID:**
When configuring PrivateLink in Anypoint Private Space, ensure that you provide this `correct-owner-account-id` as the AWS account ID associated with the VPC Endpoint Service. If you are working with a third-party service provider, communicate this correct owner ID to them to ensure their authorization settings are accurate.
APPLIES TO
* Anypoint Private Space
* AWS PrivateLink configurations
* Connections to AWS VPC Endpoint Services (e.g., for Snowflake, other SaaS providers)
005386354

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.