narrow-cpu-35517
01/23/2023, 11:30 PMconst plaidHandlerFunction = new aws.lambda.Function(
"plaidHandlerFunction",
{
name: "plaidHandlerFunction",
// Upload the code for our Lambda from the "./app" directory:
code: new pulumi.asset.AssetArchive({
".": new pulumi.asset.FileArchive("./app/lambda-functions/plaid-lambda-function")
}),
handler: "index.handler",
runtime: "nodejs16.x",
role: plaidHandlerRole.arn,
environment: {
variables: {
SQS_QUEUE: config.get("sqsQueue") || ""
}
}
},
{
dependsOn: [awsLambdaExecutePolicyAttachment, plaidSqsRolePolicyAttachment, plaidCloudwatchRolePolicyAttachment]
}
);
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by