Clayton
11/08/2021, 3:08 PMaws-cdk
primarily for IaC and you should rely on aws-sdk
to call functionality in lambdas?
• if so, does aws-sdk
need to be production dependency or can it still be a devDependency?Ross Coundon
11/08/2021, 3:10 PMClayton
11/08/2021, 3:15 PMClayton
11/08/2021, 3:18 PMaws-sdk
declared at all in package.json or whether it is included as a standard dependency or a devDependency?Ross Coundon
11/08/2021, 3:19 PMClayton
11/08/2021, 3:23 PMJP (junaway)
11/08/2021, 3:38 PMaws-sdk
is added to the bundle and that increases upload time (main be significant if the lambda is under heavy development) and lambda bootstrap time (normally marginal but...).
Another advantage from using the V3 SDK is that it works so much better with tree-shaking tools. Try it and you'll see.Gabriel Araújo
11/08/2021, 5:04 PMaws-sdk
is a big dependencies.. a work around is to set is as devDependencies and use the lib from the runtime provisioned by aws alreadyClayton
11/08/2021, 6:14 PM@aws-sdk/client-eventbridge
) as devDependencies?JP (junaway)
11/08/2021, 6:17 PM