docs/aws: Enhance the aws lambda function example to include environment (#10490)

This commit is contained in:
Paul Stack 2016-12-02 14:54:06 +02:00 committed by GitHub
parent 6760d589d6
commit 7ff079b338
1 changed files with 5 additions and 0 deletions

View File

@ -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"
}
}
}
```