Skip to content

Commit 316e2d5

Browse files
authored
Merge pull request #2833 from joe4dev/fix/api-gateway-custom-endpoint
Fix hardcoded AWS endpoint using CloudFormation pseudo parameter
2 parents de0f9d7 + 3f27af8 commit 316e2d5

File tree

116 files changed

+165
-165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+165
-165
lines changed

APIGateway-SQS-ReceiveMessages/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Outputs:
115115
# API Gateway Invoke URL
116116
AppApiEndpoint:
117117
Description: API Endpoint
118-
Value: !Sub https://${AppApi}.execute-api.${AWS::Region}.amazonaws.com/Prod
118+
Value: !Sub https://${AppApi}.execute-api.${AWS::Region}.${AWS::URLSuffix}/Prod
119119

120120
QueueName:
121121
Description: SQS Name

activemq-lambda-sam-java/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Resources:
147147
Outputs:
148148
ActiveMQWebConsole:
149149
Description: The ActiveMQ web-console host
150-
Value: !Sub 'https://${MyMQBroker}-1.mq.${AWS::Region}.amazonaws.com:8162/admin/index.jsp'
150+
Value: !Sub 'https://${MyMQBroker}-1.mq.${AWS::Region}.${AWS::URLSuffix}:8162/admin/index.jsp'
151151
MyMQMessageHandlerFunction:
152152
Description: The name of the ActiveMQ message handler function
153153
Value: !Ref MyMQMessageHandlerFunction

amplify_cognito_apigateway_lambda_envvariables/template.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ Resources:
185185
- Name: user_pools_web_client_id
186186
Value: !Ref rAmplifyCognitoClient
187187
- Name: APIURL
188-
Value: !Sub "https://${myAPI}.execute-api.${AWS::Region}.amazonaws.com/dev"
188+
Value: !Sub "https://${myAPI}.execute-api.${AWS::Region}.${AWS::URLSuffix}/dev"
189189
Repository: !Ref AmplifyFrontendRepository
190190
OauthToken: !Ref OauthToken
191191

@@ -222,6 +222,6 @@ Outputs:
222222

223223
APIurl:
224224
Description: API url
225-
Value: !Sub "https://${myAPI}.execute-api.${AWS::Region}.amazonaws.com/dev"
225+
Value: !Sub "https://${myAPI}.execute-api.${AWS::Region}.${AWS::URLSuffix}/dev"
226226
Export:
227227
Name: APIurl

apigw-api-key/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ Outputs:
8383
# API Gateway endpoint to be used during tests
8484
AppApiEndpoint:
8585
Description: API Endpoint
86-
Value: !Sub "https://${AppApi}.execute-api.${AWS::Region}.amazonaws.com/Prod"
86+
Value: !Sub "https://${AppApi}.execute-api.${AWS::Region}.${AWS::URLSuffix}/Prod"

apigw-appsync-dynamodb-sam/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ Resources:
209209
Outputs:
210210
ApiGatewayEndpoint:
211211
Description: "HTTP API Gateway endpoint for /restaurant path"
212-
Value: !Sub "https://${HttpApiProxy}.execute-api.${AWS::Region}.amazonaws.com/restaurant"
212+
Value: !Sub "https://${HttpApiProxy}.execute-api.${AWS::Region}.${AWS::URLSuffix}/restaurant"
213213

214214
AppSyncApiKey:
215215
Description: "AppSync API Key"

apigw-cache-invalidation-eventbridge/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ Resources:
298298
Outputs:
299299
ApiUrl:
300300
Description: "API Gateway endpoint URL for Prod stage"
301-
Value: !Sub "https://${Api}.execute-api.${AWS::Region}.amazonaws.com/Prod/"
301+
Value: !Sub "https://${Api}.execute-api.${AWS::Region}.${AWS::URLSuffix}/Prod/"
302302

303303
CloudWatchDashboard:
304304
Condition: deployMetricsDashboard

apigw-caching-sam/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ Resources:
4242
Outputs:
4343
CachedApiUrl:
4444
Description: "API Gateway endpoint URL for Prod stage for Hello World function"
45-
Value: !Sub "https://${CachedApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/"
45+
Value: !Sub "https://${CachedApi}.execute-api.${AWS::Region}.${AWS::URLSuffix}/Prod/"

apigw-client-certificate/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ Outputs:
6969
# API Gateway endpoint to be used during tests
7070
AppApiEndpoint:
7171
Description: API Endpoint
72-
Value: !Sub "https://${AppApi}.execute-api.${AWS::Region}.amazonaws.com/Prod"
72+
Value: !Sub "https://${AppApi}.execute-api.${AWS::Region}.${AWS::URLSuffix}/Prod"

apigw-cloudwatch/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Outputs:
5555
# API endpoint for testing
5656
ApiEndpoint:
5757
Description: API endpoint URL
58-
Value: !Sub https://${MyApi}.execute-api.${AWS::Region}.amazonaws.com/Prod
58+
Value: !Sub https://${MyApi}.execute-api.${AWS::Region}.${AWS::URLSuffix}/Prod
5959
LogGroupName:
6060
Description: Name of the log group
6161
Value: !Ref MyLogGroup

apigw-comprehend/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ Outputs:
7171
ComprehendApiEndpoint:
7272
Description: API endpoint URL
7373
Value: !Sub >-
74-
https://${ComprehendApi}.execute-api.${AWS::Region}.amazonaws.com/prod/detectSentiment
74+
https://${ComprehendApi}.execute-api.${AWS::Region}.${AWS::URLSuffix}/prod/detectSentiment

0 commit comments

Comments
 (0)