nhs-england-tools / terraform-aws-opennext

🧱 💻 ☁️ A Terraform module for deploying a Next.js application built with OpenNext to AWS
MIT License
75 stars 10 forks source link

cloudfront logs lambda issue #27

Open debu99 opened 1 month ago

debu99 commented 1 month ago

Is there an existing issue for this?

Current Behavior

    "errorType": "InvalidParameterException",
    "errorMessage": "Upload too large: 1049882 bytes exceeds limit of 1048576",
    "name": "InvalidParameterException",
    "$fault": "client",
    "$metadata": {
        "httpStatusCode": 400,
        "requestId": "84f96793-d22f-4b5f-97c3-4f58f2d2ad57",
        "attempts": 1,
        "totalRetryDelay": 0
    },
    "__type": "InvalidParameterException",
    "stack": [
        "InvalidParameterException: Upload too large: 1049882 bytes exceeds limit of 1048576",
        "    at de_InvalidParameterExceptionRes (/var/task/index.js:40409:25)",
        "    at de_PutLogEventsCommandError (/var/task/index.js:39904:23)",
        "    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)",
        "    at async /var/task/index.js:1465:24",
        "    at async /var/task/index.js:5613:22",
        "    at async /var/task/index.js:2905:42",
        "    at async /var/task/index.js:1719:26",
        "    at async Promise.all (index 0)",
        "    at async Runtime.handler (/var/task/index.js:44020:18)"
    ]
}

Expected Behavior

NA

Steps To Reproduce

No response

Output

No response

Code of Conduct

Sensitive Information Declaration