mattermost / mattermost-plugin-apps

Powers the Mattermost App Framework
https://developers.mattermost.com/integrate/apps/
Apache License 2.0
34 stars 29 forks source link

Error installing 'hello-serverless' app: AWS Lambda deployment type not configured #475

Open guneshsji opened 1 year ago

guneshsji commented 1 year ago

Deploying "hello-serverless" Golang app on AWS lambda succeeds. But installation to MM server fails with below error

DEBUG   appsctl/mattermost.go:36    updated local manifest  {"app_id": "hello-serverless", "deploy_type": "AWS Lambda"}
Error: failed to install the app to Mattermost: deployment type "AWS Lambda" is not configured on this Mattermost server

Manifest file content:

{
    "app_id": "hello-serverless",
    "version": "v1.2.0",
    "display_name": "Hello, Serverless!",
    "homepage_url": "https://github.com/mattermost/mattermost-app-examples/golang/serverless",
    "requested_permissions": [
        "act_as_bot"
    ],
    "requested_locations": [
        "/command"
    ],
    "aws_lambda": {
        "functions": [
            {
                "path": "/",
                "name": "hello-serverless",
                "handler": "hello-serverless",
                "runtime": "go1.x"
            }
        ]
    }
}

What could be a potential issue here.

guneshsji commented 1 year ago

@hanzei Hi, do you know what could be the issue, If I want to build an integration with twilio, what should I opt for, plugin or app ?

hanzei commented 1 year ago

@guneshsji Did you setup the AWS env variables as described in https://developers.mattermost.com/integrate/apps/deploy/deploy-aws/#set-aws_deploy_-environment-variables?