@@ -195,7 +195,7 @@ Resources:
195195 TemplateURL : !Sub https://${AWS::Region}-aws-parallelcluster.s3.${AWS::Region}.amazonaws.com/parallelcluster/${Version}/api/parallelcluster-api.yaml
196196 TimeoutInMinutes : 30
197197
198- ParallelClusterUIFunction :
198+ ParallelClusterUIFun :
199199 Type : AWS::Lambda::Function
200200 Properties :
201201 Role : !GetAtt ParallelClusterUIUserRole.Arn
@@ -219,13 +219,13 @@ Resources:
219219 API_VERSION : !Ref Version
220220 SITE_URL : !Sub
221221 - https://${Api}.execute-api.${AWS::Region}.${AWS::URLSuffix}/pcui
222- - Api : !Ref ApiGateway
222+ - Api : !Ref ApiGatewayRestApi
223223 AUTH_PATH : !If [ UseExistingCognito, !Ref UserPoolAuthDomain, !GetAtt [ Cognito, Outputs.UserPoolAuthDomain ]]
224224 SECRET_ID : !GetAtt UserPoolClientSecret.SecretName
225225 AUDIENCE : !Ref CognitoAppClient
226226 OIDC_PROVIDER : ' Cognito'
227227 FunctionName : !Sub
228- - ParallelClusterUIFunction -${StackIdSuffix}
228+ - ParallelClusterUIFun -${StackIdSuffix}
229229 - { StackIdSuffix: !Select [2, !Split ['/', !Ref 'AWS::StackId']] }
230230 Code :
231231 ImageUri : !Sub
@@ -235,7 +235,7 @@ Resources:
235235 - ' -'
236236 - [!Select [2, !Split ['/', !Ref EcrImage]], !Select [3, !Split ['/', !Ref EcrImage]]]
237237
238- ApiGateway :
238+ ApiGatewayRestApi :
239239 Type : AWS::ApiGateway::RestApi
240240 Properties :
241241 Name : ParallelClusterUI
@@ -274,36 +274,36 @@ Resources:
274274 ApiGatewayProxyResource :
275275 Type : AWS::ApiGateway::Resource
276276 Properties :
277- RestApiId : !Ref ApiGateway
278- ParentId : !GetAtt ApiGateway .RootResourceId
277+ RestApiId : !Ref ApiGatewayRestApi
278+ ParentId : !GetAtt ApiGatewayRestApi .RootResourceId
279279 PathPart : ' {proxy+}'
280280
281281 ApiGatewayMethod :
282282 Type : AWS::ApiGateway::Method
283283 Properties :
284- RestApiId : !Ref ApiGateway
284+ RestApiId : !Ref ApiGatewayRestApi
285285 ResourceId : !Ref ApiGatewayProxyResource
286286 HttpMethod : ANY
287287 AuthorizationType : NONE
288288 Integration :
289289 Type : AWS_PROXY
290290 IntegrationHttpMethod : POST
291291 Uri : !Sub
292- - arn:${AWS::Partition}:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:ParallelClusterUIFunction -${StackIdSuffix}/invocations
292+ - arn:${AWS::Partition}:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:ParallelClusterUIFun -${StackIdSuffix}/invocations
293293 - { StackIdSuffix: !Select [2, !Split ['/', !Ref 'AWS::StackId']] }
294294
295295 ApiGatewayRootMethod :
296296 Type : AWS::ApiGateway::Method
297297 Properties :
298- RestApiId : !Ref ApiGateway
299- ResourceId : !GetAtt ApiGateway .RootResourceId
298+ RestApiId : !Ref ApiGatewayRestApi
299+ ResourceId : !GetAtt ApiGatewayRestApi .RootResourceId
300300 HttpMethod : ANY
301301 AuthorizationType : NONE
302302 Integration :
303303 Type : AWS_PROXY
304304 IntegrationHttpMethod : POST
305305 Uri : !Sub
306- - arn:${AWS::Partition}:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:ParallelClusterUIFunction -${StackIdSuffix}/invocations
306+ - arn:${AWS::Partition}:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:ParallelClusterUIFun -${StackIdSuffix}/invocations
307307 - { StackIdSuffix: !Select [2, !Split ['/', !Ref 'AWS::StackId']] }
308308
309309 ApiGatewayLogRole :
@@ -338,16 +338,16 @@ Resources:
338338 Type : AWS::ApiGateway::Deployment
339339 DependsOn : ApiGatewayMethod
340340 Properties :
341- RestApiId : !Ref ApiGateway
341+ RestApiId : !Ref ApiGatewayRestApi
342342
343- ApiGatewayStage :
343+ ApiGatewayRestStage :
344344 Type : AWS::ApiGateway::Stage
345345 DependsOn : ApiGatewayAccount
346346 Properties :
347347 AccessLogSetting :
348348 DestinationArn : !GetAtt ApiGatewayAccessLog.Arn
349349 Format : ' { "requestId":"$context.requestId", "ip": "$context.identity.sourceIp", "requestTime":"$context.requestTime", "httpMethod":"$context.httpMethod","path":"$context.path", "status":"$context.status","protocol":"$context.protocol", "responseLength":"$context.responseLength" }'
350- RestApiId : !Ref ApiGateway
350+ RestApiId : !Ref ApiGatewayRestApi
351351 DeploymentId : !Ref ApiGatewayDeployment
352352 StageName : pcui
353353 MethodSettings :
@@ -371,7 +371,7 @@ Resources:
371371 CallbackURLs :
372372 - !Sub
373373 - https://${Api}.execute-api.${AWS::Region}.${AWS::URLSuffix}/pcui/login
374- - Api : !Ref ApiGateway
374+ - Api : !Ref ApiGatewayRestApi
375375 SupportedIdentityProviders :
376376 - COGNITO
377377 UserPoolId : !If [ UseExistingCognito, !Ref UserPoolId, !GetAtt [ Cognito, Outputs.UserPoolId ]]
@@ -757,7 +757,7 @@ Resources:
757757 ParallelClusterUILambdaLogGroup :
758758 Type : AWS::Logs::LogGroup
759759 Properties :
760- LogGroupName : !Sub /aws/lambda/${ParallelClusterUIFunction }
760+ LogGroupName : !Sub /aws/lambda/${ParallelClusterUIFun }
761761 RetentionInDays : 90
762762
763763
@@ -794,11 +794,11 @@ Resources:
794794 Type : AWS::Lambda::Permission
795795 Properties :
796796 Action : lambda:InvokeFunction
797- FunctionName : !GetAtt ParallelClusterUIFunction .Arn
797+ FunctionName : !GetAtt ParallelClusterUIFun .Arn
798798 Principal : apigateway.amazonaws.com
799799 SourceArn : !Sub
800800 - arn:${AWS::Partition}:execute-api:${AWS::Region}:${AWS::AccountId}:${ApiGateway}/*
801- - { ApiGateway: !Ref ApiGateway }
801+ - { ApiGateway: !Ref ApiGatewayRestApi }
802802
803803 ParallelClusterApiGatewayInvoke :
804804 Type : AWS::IAM::ManagedPolicy
@@ -1004,14 +1004,14 @@ Resources:
10041004Outputs :
10051005 ParallelClusterUILambdaArn :
10061006 Description : ' ARN of the ParallelCluster UI Lambda function'
1007- Value : !GetAtt ParallelClusterUIFunction .Arn
1007+ Value : !GetAtt ParallelClusterUIFun .Arn
10081008 ParallelClusterUIUrl :
10091009 Description : ' Url to reach the ParallelCluster UI Site.'
10101010 Export :
10111011 Name : !Sub ${AWS::StackName}-ParallelClusterUISite
10121012 Value : !Sub
10131013 - https://${Api}.execute-api.${AWS::Region}.${AWS::URLSuffix}/pcui
1014- - Api : !Ref ApiGateway
1014+ - Api : !Ref ApiGatewayRestApi
10151015 AppClientId :
10161016 Description : The id of the Cognito app client
10171017 Value : !Ref CognitoAppClient
0 commit comments