https://pulumi.com logo
#google-cloud
Title
# google-cloud
h

helpful-processor-86468

04/24/2020, 7:15 AM
https://www.pulumi.com/docs/reference/pkg/gcp/dns/managedzone/ Can somebody tell me how to get existing ManagedZone and what is this id field exactly?
l

limited-rainbow-51650

04/24/2020, 7:19 AM
To access info of an existing ManagedZone, you will have to use this data source: https://www.pulumi.com/docs/reference/pkg/gcp/dns/getmanagedzone/#using
👍 1
b

bland-lamp-16797

04/24/2020, 7:37 AM
isn't smarter to import ? https://www.pulumi.com/blog/adopting-existing-cloud-resources-into-pulumi/ This way you also control the changes on existing resourses...
h

helpful-processor-86468

04/24/2020, 7:53 AM
is there some kind of benefit of importing resource if the only thing i want to do is read its properties?
b

bland-lamp-16797

04/24/2020, 8:31 AM
no, not really 🙂 unless you want to manage that resource
👍 1