Sadly, the only other way would be to not use EVs and hardcode the values in your code. Then, keep your repo private. As you can see, the limit is imposed by AWS and they have clearly mentioned that it can’t be increased.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Bypass the 4kb env limit? | 6 | 1818 | April 3, 2025 | |
Environment Vars Feature requests / Filter env vars to include in Lambda environment parameter | 49 | 3160 | March 4, 2023 | |
Why does 11 environment variables exceed the AWS Lambda limit? | 7 | 7975 | May 26, 2022 | |
"Invalid AWS Lambda parameters. Reserved keys used in this request." | 21 | 4071 | July 5, 2021 | |
Long Environment Variable with line breaks (\n) | 5 | 6648 | June 12, 2020 |