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:
325
325
stage = api_url.split('/')[3]
326
326
api_gateway_arns.append(f"arn:{get_partition(os.environ['AWS_REGION'])}:execute-api:{os.environ['AWS_REGION']}:{account_id}:{gateway}/{stage}/*")
327
327
328
- print(f"Version={version}, ApiURL={api_url, ")
328
+ print(f"Version={version}, ApiURL={api_url} ")
329
329
break
330
-
331
- result = result[:-1]
332
330
333
331
except Exception as e :
334
332
print(f"Error processing stack {stack['StackName']} : {str(e)}")
335
333
continue
334
+ result = result[:-1]
336
335
print(f"Result : {result}")
337
336
338
337
response_data = {"ApiVersionMapping" : result, "ApiArns": ','.join(api_gateway_arns)}
@@ -365,8 +364,12 @@ Resources:
365
364
- Effect : Allow
366
365
Action :
367
366
- cloudformation:ListStacks
368
- - cloudformation:DescribeStacks
369
367
Resource : ' *'
368
+ - Effect : Allow
369
+ Action :
370
+ - cloudformation:DescribeStacks
371
+ Resource :
372
+ - !Sub " arn:${AWS::Partition}:cloudformation:${AWS::Region}:${AWS::AccountId}:stack/*"
370
373
Condition :
371
374
StringEquals :
372
375
" aws:ResourceTag/parallelcluster:api-id " : !Ref ApiGatewayRestApi
You can’t perform that action at this time.
0 commit comments