Why is this AMI lookup so slow? Can it be optimiz...
# general
m
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
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?