serverless-application-model icon indicating copy to clipboard operation
serverless-application-model copied to clipboard

Code pipline failed due to: No integration defined for method

Open avizaviz opened this issue 9 years ago • 2 comments

Hi, My Code Pipline fails. inthe execution phase with the following error:

Execute AWS CloudFormation Failed 18 hours ago Details

Action execution failed Failed to execute change set. Current stack status: UPDATE_ROLLBACK_COMPLETE. Reason: No reason was provided. Link to execution details

Clicking on details shifts to cloud formation stack with the following errors:

13:58:37 UTC+0200 UPDATE_ROLLBACK_IN_PROGRESS AWS::CloudFormation::Stack ProdStack2 The following resource(s) failed to create: [apiDeployment]. 13:58:35 UTC+0200 CREATE_FAILED AWS::ApiGateway::Deployment apiDeployment No integration defined for method 13:58:34 UTC+0200 CREATE_IN_PROGRESS AWS::ApiGateway::Deployment apiDeployment

Pay attention running the following command locally succeeded: aws cloudformation deploy --template-file c:\StackData\lambda\outputTemplate.yml --stack-name ProdStack --capabilities CAPABILITY_IAM `

My Template file is:

AWSTemplateFormatVersion: '2010-09-09'
Description: Outputs the time
Resources:
  f1:
    Properties:
      CodeUri: s3://lambdabiot/6135bb77878b4c847aee2b609cef4cc2
      Events:
        MyApi:
          Properties:
            Method: GET
            Path: /f1
          Type: Api
      Handler: index.handler
      Runtime: nodejs4.3
    Type: AWS::Serverless::Function
  f2:
    Properties:
      CodeUri: s3://lambdabiot/86bd36e690b8f6a2ee59e9375ed7b983
      Events:
        MyApi:
          Properties:
            Method: GET
            Path: /f2
          Type: Api
      Handler: index.handler
      Runtime: nodejs4.3
    Type: AWS::Serverless::Function
Transform: AWS::Serverless-2016-10-31

avizaviz avatar Jan 04 '17 06:01 avizaviz

That's weird. I can't tell much without knowing your pipeline setup.

You can call aws cloudformation get-template --stack-name <stackname> to get the template generated by SAM. Can you paste the output here? This will give us more insights

sanathkr avatar Jan 04 '17 19:01 sanathkr

Marking as stale since follow up questions were not answered. Closing

jfuss avatar Jan 10 '18 19:01 jfuss