Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

How to add lambda trigger event #288

Open
islasjuanp opened this issue Dec 28, 2021 · 0 comments
Open

How to add lambda trigger event #288

islasjuanp opened this issue Dec 28, 2021 · 0 comments

Comments

@islasjuanp
Copy link

Hello 👋

In the project that I am working on, the cdk-triggers is the way that we found to trigger the first event of the lambda function. In order to be able to reuse that function, I need to be able to send an event to the function with the following format:

{
    "resource": "/",
    "path": "/",
    "httpMethod": "GET",
    "requestContext": {
        "resourcePath": "/",
        "httpMethod": "GET",
        "path": "/Prod/",
        ...
    },
    "headers": {
        "accept": "text/html",
        "accept-encoding": "gzip, deflate, br",
        "Host": "xxx.us-east-2.amazonaws.com",
        "User-Agent": "Mozilla/5.0",
        ...
    },
    "multiValueHeaders": {
        "accept": [
            "text/html"
        ],
        "accept-encoding": [
            "gzip, deflate, br"
        ],
        ...
    },
    "queryStringParameters": {
        "postcode": 12345
        },
    "multiValueQueryStringParameters": null,
    "pathParameters": null,
    "stageVariables": null,
    "body": null,
    "isBase64Encoded": false
}

Is it possible to create the event and sent it with the first execution of the lambda function?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant