How to add a Lambda Environment Variable in Terraform
If you have an aws_lambda_function
block that needs to make use of environment variables, then you can simply do the following:
The above example creates an environment variable called api_key
with a value of secret-key