Panic when ec2.LookupAmiOutput finds no matching results #8107
Labels
area/codegen
SDK-gen, program-gen, convert
impact/panic
This bug represents a panic or unexpected crash
kind/bug
Some behavior is incorrect or out of spec
language/go
resolution/fixed
This issue was fixed
Milestone
Hello!
Issue details
ec2.LookupAmiOutput
panics when the user-specified filters result in no AMIs being found.Steps to reproduce
Expected: recoverable error or empty result
Actual: panic
Filing it here rather than in pulumi/pulumi-aws as this might be an issue with handling errors in the newly introduced $fnOutput helper feature, the older plain version of the invoke LookupAmi is better behaved here.
The text was updated successfully, but these errors were encountered: