Is there a way to reference existing resources, si...
# general
g
Is there a way to reference existing resources, similar to what terraform's "data" does?
w
Yes - there are methods like
azure.storage.getAccount
that fill the same purpose. For any Terraform data source, you should find the equivalent
getSomething
method available.
b
Also, every resource in Pulumi has a static
get
method on it. So in a lot of cases, you don't even need the
getSomething
method. E.g.,
azure.storage.account.get(...)
.
g
Excellent, thanks!