mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-05-07 15:02:40 -04:00
docs/aws: Enhance the aws lambda function example to include environment (#10490)
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user