https://pulumi.com logo
m

modern-bear-85657

07/24/2019, 7:12 PM
Why is this AMI lookup so slow? Can it be optimized?
Copy code
const ami = await getAmi({
        mostRecent: true,
        nameRegex: `amzn2-ami-hvm-.*-x86_64-ebs`,
        owners: ['amazon']
    })
s

salmon-account-74572

07/24/2019, 7:13 PM
I haven't tried this in Pulumi yet, but in the AWS CLI you can submit filters that are processed server-side (via the
--filters
command line option). Maybe there's something similar for this function?
2 Views