https://pulumi.com logo
#general
Title
# general
g

gray-elephant-37695

05/01/2019, 8:42 AM
Is there a way to reference existing resources, similar to what terraform's "data" does?
w

white-balloon-205

05/01/2019, 6:58 PM
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

big-piano-35669

05/02/2019, 3:12 AM
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

gray-elephant-37695

05/03/2019, 3:13 AM
Excellent, thanks!