-
Notifications
You must be signed in to change notification settings - Fork 4.4k
fix(ec2): add VPC endpoint naming conventions for some isolated regions #36794
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
|
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 |
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.
8dcdb39 to
0dd765e
Compare
There was a problem hiding this 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'], |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Add correct VPC endpoint prefixes for several AWS isolated regions:
gov.ic.c2sgov.sgov.sc2sgov.ic.hci.cspThis 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