@@ -263,7 +263,13 @@ Resources:
263
263
- { CustomDomainBasePath: !FindInMap [ ParallelClusterUI, Constants, CustomDomainBasePath ] }
264
264
- !Sub
265
265
- https://${Api}.execute-api.${AWS::Region}.${AWS::URLSuffix}/${Stage}
266
- - { Api: !Ref ApiGatewayRestApi, Stage: !Ref ApiGatewayRestStage }
266
+ - Api : !If
267
+ - IsPrivate
268
+ - !Sub
269
+ - ' ${ApiId}-${VpceId}'
270
+ - { ApiId: !Ref ApiGatewayRestApi, VpceId: !Ref VpcEndpointId }
271
+ - !Ref ApiGatewayRestApi
272
+ Stage : !Ref ApiGatewayRestStage
267
273
AUTH_PATH : !If [ UseExistingCognito, !Ref UserPoolAuthDomain, !GetAtt [ Cognito, Outputs.UserPoolAuthDomain ]]
268
274
SECRET_ID : !GetAtt UserPoolClientSecret.SecretName
269
275
AUDIENCE : !Ref CognitoAppClient
@@ -424,7 +430,13 @@ Resources:
424
430
- { CustomDomainBasePath: !FindInMap [ ParallelClusterUI, Constants, CustomDomainBasePath ] }
425
431
- !Sub
426
432
- https://${Api}.execute-api.${AWS::Region}.${AWS::URLSuffix}/${Stage}/login
427
- - { Api: !Ref ApiGatewayRestApi, Stage: !Ref ApiGatewayRestStage }
433
+ - Api : !If
434
+ - IsPrivate
435
+ - !Sub
436
+ - ' ${ApiId}-${VpceId}'
437
+ - { ApiId: !Ref ApiGatewayRestApi, VpceId: !Ref VpcEndpointId }
438
+ - !Ref ApiGatewayRestApi
439
+ Stage : !Ref ApiGatewayRestStage
428
440
SupportedIdentityProviders :
429
441
- COGNITO
430
442
UserPoolId : !If [ UseExistingCognito, !Ref UserPoolId, !GetAtt [ Cognito, Outputs.UserPoolId ]]
@@ -1102,7 +1114,13 @@ Outputs:
1102
1114
- { CustomDomainBasePath: !FindInMap [ ParallelClusterUI, Constants, CustomDomainBasePath ] }
1103
1115
- !Sub
1104
1116
- https://${Api}.execute-api.${AWS::Region}.${AWS::URLSuffix}/${Stage}
1105
- - { Api: !Ref ApiGatewayRestApi, Stage: !Ref ApiGatewayRestStage }
1117
+ - Api : !If
1118
+ - IsPrivate
1119
+ - !Sub
1120
+ - ' ${ApiId}-${VpceId}'
1121
+ - { ApiId: !Ref ApiGatewayRestApi, VpceId: !Ref VpcEndpointId }
1122
+ - !Ref ApiGatewayRestApi
1123
+ Stage : !Ref ApiGatewayRestStage
1106
1124
CustomDomainEndpoint :
1107
1125
Condition : UseCustomDomain
1108
1126
Description : |
0 commit comments