docs/aws: Enhance the aws lambda function example to include environment (#10490)
This commit is contained in:
parent
6760d589d6
commit
7ff079b338
|
@ -40,6 +40,11 @@ resource "aws_lambda_function" "test_lambda" {
|
|||
role = "${aws_iam_role.iam_for_lambda.arn}"
|
||||
handler = "exports.test"
|
||||
source_code_hash = "${base64sha256(file("lambda_function_payload.zip"))}"
|
||||
environment {
|
||||
variables = {
|
||||
foo = "bar"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue