https://pulumi.com logo
i

incalculable-diamond-5088

07/31/2019, 10:21 PM
Hi, for the
resource.get
methods. Is the
id
mandatory? How can I filter the resource by tag? (for example,
aws.route53.Zone
)
w

white-balloon-205

07/31/2019, 10:23 PM
There are two kinds of methods: 1.
aws.s3.Bucket.get()
- this requires an
id
and always returns a
Bucket
or else an exception 2.
aws.s3.getSomething()
- these are more general purpose and could return any kind of data - including informaiton about multiple resources. They do not actually return true resource objects (like `aws.s3.Bucket`s - they return other data as a result of queries)
i

incalculable-diamond-5088

07/31/2019, 10:24 PM
Got it. Thanks!