File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -240,6 +240,7 @@ Resources:
240240 import os
241241 import re
242242 import time
243+ from urllib.parse import urlparse
243244
244245 def get_partition(region):
245246 if region.startswith('us-gov-'):
@@ -320,7 +321,7 @@ Resources:
320321 result = f"{result}{version}={output['OutputValue']},"
321322
322323 parsed_url = urlparse(output['OutputValue']).hostname.split('.')[0]
323- api_gateway_arns.append(f"arn:{get_partition(os.environ['AWS_REGION'])}:execute-api:{os.environ['AWS_REGION']}:{account_id}/ {parsed_url}/*/*")
324+ api_gateway_arns.append(f"arn:{get_partition(os.environ['AWS_REGION'])}:execute-api:{os.environ['AWS_REGION']}:{account_id}: {parsed_url}/*/*")
324325 print(f"API arn : {parsed_url}")
325326
326327 print(f"Version={version}, ApiURL={output['OutputValue']}, ")
You can’t perform that action at this time.
0 commit comments