This message was deleted.
# typescript
s
This message was deleted.
l
The only relevant import in my Pulumi code is
import * as aws from "@pulumi/aws";
. Maybe I need to explicitly import EC2 somehow?
Added
import { getInstances } from "@pulumi/aws/ec2";
and changed the code to just be
getInstances({ filters: filters });
but that didn't change the result 😞
w
When I try to use a little bit of Pulumi code (which I know I should be able to, there's an example
Note that currently you cannot use the Pulumi SDKs "at runtime" inside a Lambda. The example you linked to uses the standard JavaScript AWS SDK. An instance of that SDK is available from
aws.sdk
for runtime code - so that code like this can work inside the Lambda:
Copy code
const s3Client = new aws.sdk.S3();
But this is still ultimately using the AWS SDK, not the Pulumi SDK.
l
Ah, that'll be it then. Ok I'll keep going with what I've got. 👍