diff --git a/overlays/nodejs/serverless/function.ts b/overlays/nodejs/serverless/function.ts index 4a8f61ae2ae..ef809611570 100644 --- a/overlays/nodejs/serverless/function.ts +++ b/overlays/nodejs/serverless/function.ts @@ -83,6 +83,10 @@ export interface FunctionOptions { securityGroupIds: pulumi.Input, subnetIds: pulumi.Input, }; + /** + * The Lambda environment's configuration settings. + */ + environment?: pulumi.Input<{ variables?: pulumi.Input<{[key: string]: pulumi.Input}> }>; /** * The paths relative to the program folder to include in the Lambda upload. Default is `[]`. */ @@ -169,6 +173,7 @@ export class Function extends pulumi.ComponentResource { code: new pulumi.asset.AssetArchive(codePaths), handler: serializedFileName + "." + handlerName, runtime: options.runtime || lambda.NodeJS8d10Runtime, + environment: options.environment, role: this.role.arn, timeout: options.timeout === undefined ? 180 : options.timeout, memorySize: options.memorySize, diff --git a/sdk/nodejs/serverless/function.ts b/sdk/nodejs/serverless/function.ts index 4a8f61ae2ae..ef809611570 100644 --- a/sdk/nodejs/serverless/function.ts +++ b/sdk/nodejs/serverless/function.ts @@ -83,6 +83,10 @@ export interface FunctionOptions { securityGroupIds: pulumi.Input, subnetIds: pulumi.Input, }; + /** + * The Lambda environment's configuration settings. + */ + environment?: pulumi.Input<{ variables?: pulumi.Input<{[key: string]: pulumi.Input}> }>; /** * The paths relative to the program folder to include in the Lambda upload. Default is `[]`. */ @@ -169,6 +173,7 @@ export class Function extends pulumi.ComponentResource { code: new pulumi.asset.AssetArchive(codePaths), handler: serializedFileName + "." + handlerName, runtime: options.runtime || lambda.NodeJS8d10Runtime, + environment: options.environment, role: this.role.arn, timeout: options.timeout === undefined ? 180 : options.timeout, memorySize: options.memorySize,