@@ -9,7 +9,6 @@ import { ISubnet, IVpc, SubnetSelection } from './vpc';
9
9
import * as iam from '../../aws-iam' ;
10
10
import * as cxschema from '../../cloud-assembly-schema' ;
11
11
import { Aws , ContextProvider , IResource , Lazy , Resource , Stack , Token } from '../../core' ;
12
- import { PARTITION_MAP } from '../../region-info/build-tools/fact-tables' ;
13
12
14
13
/**
15
14
* A VPC endpoint.
@@ -667,21 +666,8 @@ export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointServ
667
666
'redshift' , 'redshift-data' , 's3' , 'sagemaker.api' , 'sagemaker.featurestore-runtime' , 'sagemaker.runtime' , 'securityhub' ,
668
667
'servicecatalog' , 'sms' , 'sqs' , 'states' , 'sts' , 'sync-states' , 'synthetics' , 'transcribe' , 'transcribestreaming' , 'transfer' ,
669
668
'workspaces' , 'xray' ] ,
670
- 'us-isof-' : [ 'ecr.api' , 'ecr.dkr' ] ,
671
- 'eu-isoe-' : [ 'ecr.api' , 'ecr.dkr' ] ,
672
669
} ;
673
-
674
- const regionPartition = region . split ( '-' ) . slice ( 0 , 2 ) . join ( '-' ) ;
675
- const partitionDetails = PARTITION_MAP [ `${ regionPartition } -` ] ;
676
-
677
- // Check for specific service name under isolated region prefix
678
- const serviceInExceptions = VPC_ENDPOINT_SERVICE_EXCEPTIONS [ `${ regionPartition } -` ] ?. includes ( name ) ;
679
-
680
- if ( serviceInExceptions ) {
681
- // Endpoints generated in reverse of domain suffix for the services mentioned in map
682
- const reverseString = partitionDetails . domainSuffix . split ( '.' ) . reverse ( ) . join ( '.' ) ;
683
- return reverseString ;
684
- } else if ( VPC_ENDPOINT_SERVICE_EXCEPTIONS [ region ] ?. includes ( name ) ) {
670
+ if ( VPC_ENDPOINT_SERVICE_EXCEPTIONS [ region ] ?. includes ( name ) ) {
685
671
return 'cn.com.amazonaws' ;
686
672
} else {
687
673
return 'com.amazonaws' ;
0 commit comments