https://pulumi.com logo
Title
l

limited-dusk-32272

01/21/2023, 8:40 AM
Hi Channel. Is there any way to access resource from AWS through Pulumi? I have a situation where I need to first check if resource with given name already exists or not. If not then I need to create otherwise skip it and pass the arn of existing resource to other resource.
b

billowy-army-68599

01/21/2023, 6:07 PM
this isn’t possible really, no. Pulumi drives towards a desired state, if the resource exits you should import it or look it up
e

echoing-dinner-19531

01/21/2023, 10:55 PM
We do have an issue tracking this: https://github.com/pulumi/pulumi/issues/3388 Is a bit more subtle then one would initially suspect