Couldn't add device (AWS lambda)

Hi, sorry for the delay.

So, this means using a WebHook project, the installation was successful?

Ok, to avoid this issue, make sure you:

  1. Have your Lambda function in the correct region (us-east-1, ap-northeast-1 or eu-west-1)
  2. You configured correctly your AWS CLI (the correct key and region selected)
  3. You provided the permissions to your Lambda function (using the correct AWS CLI profile and principal value)
aws lambda add-permission --function-name functionName --profile profileName --principal 148790070172 --statement-id smartthings --action lambda:InvokeFunction
  1. The configuration and code of your Lambda function are correct
    a. The project must have the node_modules > st-schema directory.
    b. In the runtime configuration, you need to see that the handler info matches your file. Eg. if your file is named index.js, index.handler it’s correct.