File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
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,6 +364,9 @@ Resources:
365
364
- Effect : Allow
366
365
Action :
367
366
- cloudformation:ListStacks
367
+ Resource : ' *'
368
+ - Effect : Allow
369
+ Action :
368
370
- cloudformation:DescribeStacks
369
371
Resource : ' *'
370
372
Condition :
You can’t perform that action at this time.
0 commit comments