sparse-intern-71089
06/18/2020, 11:44 PMlittle-cartoon-10569
06/18/2020, 11:45 PMimport * as aws from "@pulumi/aws";
. Maybe I need to explicitly import EC2 somehow?little-cartoon-10569
06/18/2020, 11:53 PMimport { getInstances } from "@pulumi/aws/ec2";
and changed the code to just be getInstances({ filters: filters });
but that didn't change the result 😞white-balloon-205
When I try to use a little bit of Pulumi code (which I know I should be able to, there's an exampleNote 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:
const s3Client = new aws.sdk.S3();
But this is still ultimately using the AWS SDK, not the Pulumi SDK.little-cartoon-10569
06/19/2020, 12:55 AM