Skip to content

fix(ec2): fixing vpc endpoint for eu-isoe-west-1 region#37596

Open
gudipati wants to merge 2 commits intomainfrom
gudipati/main
Open

fix(ec2): fixing vpc endpoint for eu-isoe-west-1 region#37596
gudipati wants to merge 2 commits intomainfrom
gudipati/main

Conversation

@gudipati
Copy link
Copy Markdown
Contributor

@gudipati gudipati commented Apr 14, 2026

Issue # (if applicable)

Closes #31690.

Reason for this change

When deploying a stack that creates VPC interface endpoints in the eu-isoe-west-1 region, the generated endpoint
is incorrect. The endpoint uses the default com.amazonaws prefix, but eu-isoe-west-1 region requires the uk.adc-e.cloud prefix.

For example, in eu-isoe-west-1, the ECR Docker endpoint should be uk.adc-e.cloud.eu-isoe-west-1.ecr.dkr

But CDK produces com.amazonaws.eu-isoe-west-1.ecr.dkr

This causes a CloudFormation deployment failure:

    The Vpc Endpoint Service 'com.amazonaws..ecr.dkr' does not exist
    (Service: AmazonEC2; Status Code: 400; Error Code: InvalidServiceName)

This PR updates the prefix for eu-isoe-west-1 region to fix this issue.

Description of changes

Fixed the VPC endpoint prefix for eu-isoe-west-1 region and added unit-tests.
As this is an isolated region, integration tests have not been added.

I was not able to get the complete list of endpoints using aws ec2 describe-vpc-endpoint-services --query 'ServiceNames' as I don't have access to this isolated region but someone with access helped confirm that for these 4 endpoints, they differ from the standard VPCE pattern - (com.amazon.eu-isoe-west-1.*)

uk.adc-e.cloud.eu-isoe-west-1.ebs
uk.adc-e.cloud.eu-isoe-west-1.ecr.api
uk.adc-e.cloud.eu-isoe-west-1.ecr.dkr
uk.adc-e.cloud.eu-isoe-west-1.execute-api

Describe any new or updated permissions being added

N/A

Description of how you validated changes

Validated unit-tests

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions bot added bug This issue is a bug. effort/medium Medium work item – several days of effort p2 labels Apr 14, 2026
@aws-cdk-automation aws-cdk-automation requested a review from a team April 14, 2026 15:36
@github-actions github-actions bot added the repeat-contributor [Pilot] contributed between 3-5 PRs to the CDK label Apr 14, 2026
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Apr 14, 2026
Copy link
Copy Markdown
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pull request linter fails with the following errors:

❌ Fixes must contain a change to an integration test file and the resulting snapshot.

If you believe this pull request should receive an exemption, please comment and provide a justification. A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed, add Clarification Request to a comment.

✅ A exemption request has been requested. Please wait for a maintainer's review.

@gudipati
Copy link
Copy Markdown
Contributor Author

Exemption Request: As this is an isolated region, integration tests could not be added.

@aws-cdk-automation aws-cdk-automation added the pr-linter/exemption-requested The contributor has requested an exemption to the PR Linter feedback. label Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug This issue is a bug. contribution/core This is a PR that came from AWS. effort/medium Medium work item – several days of effort p2 pr/needs-maintainer-review This PR needs a review from a Core Team Member pr-linter/exemption-requested The contributor has requested an exemption to the PR Linter feedback. repeat-contributor [Pilot] contributed between 3-5 PRs to the CDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants