File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -325,14 +325,13 @@ Resources:
325325 stage = api_url.split('/')[3]
326326 api_gateway_arns.append(f"arn:{get_partition(os.environ['AWS_REGION'])}:execute-api:{os.environ['AWS_REGION']}:{account_id}:{gateway}/{stage}/*")
327327
328- print(f"Version={version}, ApiURL={api_url, ")
328+ print(f"Version={version}, ApiURL={api_url} ")
329329 break
330-
331- result = result[:-1]
332330
333331 except Exception as e :
334332 print(f"Error processing stack {stack['StackName']} : {str(e)}")
335333 continue
334+ result = result[:-1]
336335 print(f"Result : {result}")
337336
338337 response_data = {"ApiVersionMapping" : result, "ApiArns": ','.join(api_gateway_arns)}
@@ -365,8 +364,12 @@ Resources:
365364 - Effect : Allow
366365 Action :
367366 - cloudformation:ListStacks
368- - cloudformation:DescribeStacks
369367 Resource : ' *'
368+ - Effect : Allow
369+ Action :
370+ - cloudformation:DescribeStacks
371+ Resource :
372+ - !Sub " arn:${AWS::Partition}:cloudformation:${AWS::Region}:${AWS::AccountId}:stack/*"
370373 Condition :
371374 StringEquals :
372375 " aws:ResourceTag/parallelcluster:api-id " : !Ref ApiGatewayRestApi
You can’t perform that action at this time.
0 commit comments