Skip to content

Commit 981341e

Browse files
author
Andrews
committed
fix swagger: incorrect integration uri stage variable
1 parent 8c7060d commit 981341e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

example/simple-proxy-api.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ paths:
1919
responses:
2020
default:
2121
statusCode: 200
22-
uri: arn:aws:apigateway:YOUR_AWS_REGION:lambda:path/2015-03-31/functions/arn:aws:lambda:YOUR_AWS_REGION:YOUR_ACCOUNT_ID:function:${stageVariables.YOUR_SERVERLESS_EXPRESS_LAMBDA_FUNCTION_NAME}/invocations
22+
uri: arn:aws:apigateway:YOUR_AWS_REGION:lambda:path/2015-03-31/functions/arn:aws:lambda:YOUR_AWS_REGION:YOUR_ACCOUNT_ID:function:${stageVariables.ServerlessExpressLambdaFunctionName}/invocations
2323
passthroughBehavior: when_no_match
2424
httpMethod: POST
2525
type: aws_proxy
@@ -63,7 +63,7 @@ paths:
6363
type: string
6464
responses: {}
6565
x-amazon-apigateway-integration:
66-
uri: arn:aws:apigateway:YOUR_AWS_REGION:lambda:path/2015-03-31/functions/arn:aws:lambda:YOUR_AWS_REGION:YOUR_ACCOUNT_ID:function:${stageVariables.YOUR_SERVERLESS_EXPRESS_LAMBDA_FUNCTION_NAME}/invocations
66+
uri: arn:aws:apigateway:YOUR_AWS_REGION:lambda:path/2015-03-31/functions/arn:aws:lambda:YOUR_AWS_REGION:YOUR_ACCOUNT_ID:function:${stageVariables.ServerlessExpressLambdaFunctionName}/invocations
6767
httpMethod: POST
6868
type: aws_proxy
6969
options:

0 commit comments

Comments
 (0)