Hello, I have a resource in aws which is not depl...
# typescript
Hello, I have a resource in aws which is not deployed by pulumi but i want to use the existing resource arn from aws in my current pulumi deployment (i think it is called import aws reources or something not sure)
Here's some information on import resources into Pulumi: https://www.pulumi.com/docs/guides/adopting/import/
Here's another good read that talks about different ways of importing infrastructure, into code. https://www.pulumi.com/blog/adopting-existing-cloud-resources-into-pulumi/
If you don't want to use Pulumi to manage the resource then you should just hard code the ARN. ARNs are intended to be as long-lived as the resource, so if it's an always-there resource, it's appropriate to just hard code it. If you want to query other properties of the resource, all resource classes in Pulumi have a static
that will load an unmanaged resource object.