https://pulumi.com logo
#general
Title
# general
b

breezy-agency-15661

12/13/2019, 7:06 PM
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

gentle-diamond-70147

12/13/2019, 7:08 PM
For functionality within a Lambda function that is getting deployed you should use the AWS SDK.
b

breezy-agency-15661

12/13/2019, 7:31 PM
👍
g

gentle-diamond-70147

12/13/2019, 7:57 PM
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.