This message was deleted.
# general
s
This message was deleted.
a
c
@astonishing-quill-88807 that looks really cool, what’s triggering`_conditional_import` ?
a
If you look further down in the ec2_helper module you'll see uses of that function in the specific implementations in functions like
vpc_opts
,
route_table_opts
,
subnet_opts
, etc.
c
nvm, got it
oh thanks 🙂
so you’re directly using the AWS api for finding the objects, that’s the approach i had in mind as well
a
That code is all BSD-3 licensed so feel free to crib it for your own projects.
c
I’m using Go so that code isn’t relevant 🙂
g
Yarin is correct, we don't currently support handling "not found" errors from Pulumi's lookup functions, but we do have an issue tracking this if you would like to subscribe to it. https://github.com/pulumi/pulumi/issues/3364
👍 1