Error scenarios

There are a few error scenarios that can occur when you use environment variables, which are as follows:

  • You get a configuration error for the create or update operation when the function configuration exceeds 4 KB, or when you use a reserved key as an environment variable key provided by AWS Lambda.
  • It might be possible that the encryption or decryption of an environment variable fails during execution.
  • Due to AWS KMS service exceptions, AWS Lambda is unable to decrypt environment variables. In this case, AWS KMS will return an error message with the error conditions. It will log in to log-stream in Amazon CloudWatch.
  • You get the following error message when you access the environment variables using a disabled AWS KMS key: ...

Get Expert AWS Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.