Skip to content

aws-ec2: com.amazonaws.<region>.ecr.dkr is not registered in EC2 VPC Endpoint Service #31690

Open
@shikha372

Description

@shikha372

Describe the bug

com.amazonaws.<region>.ecr.dkr is not registered in EC2 VPC Endpoint Service and it fails deployment in some of the isolated regions

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

No response

Expected Behavior

Pass deployment in all AWS service regions with correct endpoints for a given service.

Current Behavior

Service in-build failed with this message: The Vpc Endpoint Service 'com.amazonaws..ecr.dkr' does not exist (Service: AmazonEC2; Status Code: 400; Error Code: InvalidServiceName; Request ID: c8e338f8-b9b7-4b52-a183-652f57609e24; Proxy: null)

Service in-build failed with this message: The Vpc Endpoint Service 'com.amazonaws..ecr.api' does not exist (Service: AmazonEC2; Status Code: 400; Error Code: InvalidServiceName; Request ID: 146880a2-a14b-436e-a90b-fa9761e6d383; Proxy: null)

Reproduction Steps

Deploy a stack with VPC endpoint definition and deploy it in isolated regions like ALE

Possible Solution

Workaround to fix this

Provide endpoint suffix as below to setup the endpoint for a region.
const vpce = new ec2.InterfaceVpcEndpointAwsService('ecr.api', 'uk.adc-e.cloud');

Additional Information/Context

No response

CDK CLI Version

2.160.0

Framework Version

No response

Node.js Version

nodejs20

OS

Mac

Language

TypeScript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-ec2Related to Amazon Elastic Compute CloudbugThis issue is a bug.effort/mediumMedium work item – several days of effortp2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions