gorush icon indicating copy to clipboard operation
gorush copied to clipboard

Instructions unclear: how to run in AWS lambda

Open rickschubert opened this issue 6 years ago • 1 comments

First off, thank you very much for building this amazing tool.

I am writing as I am having troubles running this tool in AWS lambda. I built the tool as suggested in the readme and pushed it to lambda. I also figured out through another issue (#343 ) that the main handler is release/linux/lambda/gorush.

But how do I know actually call it? I tried many different inputs (CLI format, API format) but nothing seems to happen actually.

One of those example formats I tried:

{
    "notifications": [
        {
            "message": "value1",
            "tokens": [" myTokenHere"],
            "api_key": "myApiKeyHere"
        }
    ]
}

And another one:

{
    "message": "value1",
    "tokens": " myTokenHere",
    "api_key": "myApiKeyHere"
}

I even tried it how the CLI would expect it:

{
    "m": "value1",
    "t": " myTokenHere",
    "k": "myApiKeyHere"
}

Could anybody help me please?

rickschubert avatar Apr 10 '19 21:04 rickschubert

Please post your CLI command or any tool you send the notification to the gorush server.

appleboy avatar Apr 25 '19 13:04 appleboy