https://pulumi.com logo
#typescript
Title
# typescript
r

refined-terabyte-65361

09/02/2021, 7:20 PM
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)
g

green-stone-37839

09/02/2021, 7:24 PM
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/
l

little-cartoon-10569

09/02/2021, 8:12 PM
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
get()
that will load an unmanaged resource object.
2 Views