Skip to content

Conversation

@bk5115545
Copy link

Add correct VPC endpoint prefixes for several AWS isolated regions:

  • us-iso-east-1, us-iso-west-1: gov.ic.c2s
  • us-isob-east-1, us-isob-west-1: gov.sgov.sc2s
  • us-isof-south-1, us-isof-east-1: gov.ic.hci.csp

This ensures VPC endpoints are correctly named for services in these isolated regions, matching the actual AWS service endpoint conventions.

Reason for this change

I'm tired of hearing about impact where specific services decided to use a different VPCE naming convention.

Description of changes

I updated the list of VPCE naming convention exceptions to cover all current VPCEs that exist in several ADC regions.

Describe any new or updated permissions being added

N/A

Description of how you validated changes

Added unit tests

Checklist


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

@aws-cdk-automation aws-cdk-automation requested a review from a team January 23, 2026 21:21
@github-actions github-actions bot added p2 beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK labels Jan 23, 2026
Copy link
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.

@bk5115545
Copy link
Author

Exemption Request: Integration tests cannot be added for these isolated regions (us-iso-, us-isob-, us-isof-*) as they require special AWS credentials and access that aren't available in the public CDK CI environment. The unit tests provide adequate coverage for the naming convention logic without requiring the CDK developers to expand their testing tooling into all AWS Partitions

@aws-cdk-automation aws-cdk-automation added the pr-linter/exemption-requested The contributor has requested an exemption to the PR Linter feedback. label Jan 23, 2026
@bk5115545 bk5115545 changed the title fix(ec2): Add VPC endpoint naming conventions for some isolated regions fix(ec2): add VPC endpoint naming conventions for some isolated regions Jan 23, 2026
Add correct VPC endpoint prefixes for several AWS isolated regions:
- us-iso-east-1, us-iso-west-1: gov.ic.c2s
- us-isob-east-1, us-isob-west-1: gov.sgov.sc2s
- us-isof-south-1, us-isof-east-1: gov.ic.hci.csp

This ensures VPC endpoints are correctly named for services in these
isolated regions, matching the actual AWS service endpoint conventions.

Includes comprehensive unit tests using test.each patterns for better
maintainability and coverage.
@bk5115545 bk5115545 force-pushed the fix/vpc-endpoint-isolated-regions branch from 8dcdb39 to 0dd765e Compare January 23, 2026 22:03
@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Jan 24, 2026
Copy link
Contributor

@lpizzinidev lpizzinidev left a comment

Choose a reason for hiding this comment

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

Ty. Just one Q / request.

'sagemaker.runtime', 'sns', 'sqs', 'workspaces'],
'us-isob-west-1': ['ecr.api', 'ecr.dkr', 'elasticfilesystem-fips', 'execute-api'],
'us-isof-south-1': ['ebs', 'ecr.api', 'ecr.dkr', 'execute-api'],
'us-isof-east-1': ['ebs', 'ecr.api', 'ecr.dkr', 'execute-api'],
Copy link
Contributor

Choose a reason for hiding this comment

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

Add eu-isoe-west-1 for completeness?

Copy link
Author

Choose a reason for hiding this comment

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

I don't have access to or know anyone who can access eu-isoe-west-1 so I am not aware of the services that use special naming conventions. I'd rather not guess at these as that could break functional CDK templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK p2 pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. pr-linter/exemption-requested The contributor has requested an exemption to the PR Linter feedback.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants