Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Unable to parse API definition because of a malformed integration at path /price. (Service: AmazonApiGateway; Status Code: 400;

The following code I put for x-amazon-apigateway-integration, please let me know if I am missing something. Thanks

  x-amazon-apigateway-integration:
    httpMethod: post
    type: aws
    uri:
      Fn::Sub: 
        - arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${FunctionArn}/invocations      
        - { FunctionArn: !GetAtt  PriceAPIFunction.Arn}
    responses:
      default:
        statusCode: '200'
like image 287
Mayank Avatar asked Oct 28 '25 03:10

Mayank


1 Answers

The ${AWS::Region} substitution is not supported - only the function name can be substituted. see https://github.com/awslabs/serverless-application-model/issues/79

like image 76
Andreas Avatar answered Oct 29 '25 20:10

Andreas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!