Skip to content

Commit 4af158a

Browse files
authored
Fix incorrect url suffix for rest/http api (#248)
1 parent 6d8eca9 commit 4af158a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

integration/resources/templates/combination/connector_httpapi_to_function.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Resources:
6767
6868
Environment:
6969
Variables:
70-
API_URL: !Sub "https://${HttpApi}.execute-api.${AWS::Region}.amazonaws.com/prod"
70+
API_URL: !Sub "https://${HttpApi}.execute-api.${AWS::Region}.${AWS::URLSuffix}/prod"
7171

7272
ConnectedFunction:
7373
Type: AWS::Lambda::Function

integration/resources/templates/combination/connector_restapi_to_function.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Resources:
6767
6868
Environment:
6969
Variables:
70-
API_URL: !Sub "https://${RestApi}.execute-api.${AWS::Region}.amazonaws.com/prod/somepath"
70+
API_URL: !Sub "https://${RestApi}.execute-api.${AWS::Region}.${AWS::URLSuffix}/prod/somepath"
7171

7272
ConnectedFunction:
7373
Type: AWS::Lambda::Function

0 commit comments

Comments
 (0)