adds Environment to the Lambda cfm optional keys

Adds Environment to the list of keys that can be included in Lambda cloudformation functions.
This commit is contained in:
Jacob Grismo 2018-12-28 23:05:25 -05:00
parent 4f7d6e15c9
commit 7b008ded3e

View File

@ -386,7 +386,7 @@ class LambdaFunction(BaseModel):
'Role': properties['Role'],
'Runtime': properties['Runtime'],
}
optional_properties = 'Description MemorySize Publish Timeout VpcConfig'.split()
optional_properties = 'Description MemorySize Publish Timeout VpcConfig Environment'.split()
# NOTE: Not doing `properties.get(k, DEFAULT)` to avoid duplicating the
# default logic
for prop in optional_properties: