Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task
shikha372 opened this issue Oct 7, 2024 · 2 comments
Open
1 task
Assignees
Labels
@aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud bug This issue is a bug. effort/medium Medium work item – several days of effort p2

Comments

@shikha372
Copy link
Contributor

shikha372 commented Oct 7, 2024

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

@shikha372 shikha372 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Oct 7, 2024
@shikha372 shikha372 self-assigned this Oct 7, 2024
@github-actions github-actions bot added the @aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud label Oct 7, 2024
@ashishdhingra ashishdhingra added p2 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Oct 7, 2024
@ashishdhingra
Copy link
Contributor

Issue opened by CDK team. Making it p2 for now.

@khushail
Copy link
Contributor

khushail commented Oct 7, 2024

related CDK code reference -

this.name = `${prefix || 'com.amazonaws'}.${Aws.REGION}.${name}`;

Cloudformation docs - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/vpc-interface-endpoints.html#vpc-endpoint-create

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud bug This issue is a bug. effort/medium Medium work item – several days of effort p2
Projects
None yet
Development

No branches or pull requests

3 participants