Skip to content

deploy on aws lambda #131

Open
Open

Description

@yunho-ju

Hello! First of all, I really like your project.
I have a question: I'm currently trying to deploy it on AWS Lambda. Could you please guide me on how to do that?
Thank you.

Activity

  1. changed the title [-]Self host this source on aws lambda[/-] [+]deploy on aws lambda[/+] on Sep 13, 2023
  2. anc95 commented on Sep 13, 2023

    @anc95
    Owner
    1. You should prepare the required env variable in the .env file
    2. yarn build:lambda to build the aws lambda function
    3. use serverless for deploying. (AWS account is required)
  3. yunho-ju commented on Sep 13, 2023

    @yunho-ju
    Author
     "errorType": "Runtime.ImportModuleError",
        "errorMessage": "Error: Cannot find module '/var/task/lambda'\nRequire stack:\n- /var/runtime/index.mjs",
        "stack": [
            "Runtime.ImportModuleError: Error: Cannot find module '/var/task/lambda'",
            "Require stack:",
            "- /var/runtime/index.mjs",
            "    at _loadUserApp (file:///var/runtime/index.mjs:1061:17)",
            "    at async UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1093:21)",
            "    at async start (file:///var/runtime/index.mjs:1256:23)",
            "    at async file:///var/runtime/index.mjs:1262:1"
        ]
    

    after deploy i got above error at aws lambda from cloudwatch log

    what did i miss?

    @anc95

  4. yunho-ju commented on Sep 13, 2023

    @yunho-ju
    Author

    I found.

    in serverless.yml file
    change handler path like below

        handler: lambda/index.webhooks 
    
  5. anc95 commented on Sep 13, 2023

    @anc95
    Owner

    @yunho-medi You deployed a webhook. Then you should create a github app with the webhook endpoint configured, then install the app to your repo, and event such as a pull request open / sync happened, would invoke the webhook for reviewing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions