Stupid question, but I can’t find the answer in th...
# general
b
Stupid question, but I can’t find the answer in the docs - for AWS functionality, am I supposed to rely on the pulumi SDK or I have to bring in the aws sdk? Asking because when I put the following in the lambda callback, the code is crashing because pulumi did not include the necessary modules into the lambda:
Copy code
let secret = await aws.ssm.getParameter({
            name: "passwordParameter"
        });
console.log(secret.value);
g
For functionality within a Lambda function that is getting deployed you should use the AWS SDK.
b
👍
g
As more context, the Pulumi libraries (
@pulumi/aws
, etc) require the Pulumi engine (the CLI) and the engine is not designed to run within a Lambda function or from anywhere but the CLI currently.