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

colossal-alarm-90650

03/30/2020, 7:31 PM
I seem to have trouble searching for an aws resource by tag. For instance when looking for an s3 tagged with { Name: ‘foobar’ } I imagine I could get the id by the expression “const s3id = aws.s3.getBucket({ tags: { Name: ‘foobar’ } }, { async: true }).when(bucket => bucket.id)” but I get a red marker on tags even though it is a property in the object. Any ideas? Is this not how to search by tag?
g

gentle-diamond-70147

03/30/2020, 8:12 PM
The
getBucket()
only takes one argument -
bucket
. https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/aws/s3/#getBucket
c

colossal-alarm-90650

03/31/2020, 4:41 AM
Heh, too obvious for me to see, right? Thanks 🙂