https://pulumi.com logo
Title
b

bitter-oil-46081

06/29/2018, 9:11 PM
I do not think you are missing something obvious, @stocky-spoon-28903, while
aws.lambda.Function
exposes an environment property, we do not expose a similar property on
aws.serverless.Function
. I believe it would be as simple as adding
environment?: string[]
to
aws,serverless.FunctionOptions
and threading it down. Does that sound right @white-balloon-205 or I am missing something subtle here?
w

white-balloon-205

06/29/2018, 11:48 PM
Yes - that is right, but not really intentional. Our aim is that you should be able to pass any parameters to the underlying
aws.lambda.Function
. Ideally, we will actually augment
aws.serverless.Function
to accept a full
aws.lambda.FunctionArgs
as input so that we don't have to copy all of the parameters over. PRs for either targeted fixes for this one property, or for the larger improvement to accept
aws.lambda.FunctionArgs
are absolutely welcome!
s

stocky-spoon-28903

06/30/2018, 8:36 AM
👍, I’ll take a shot at making this change later today