I seem to have trouble searching for an aws resour...
# general
c
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
The
getBucket()
only takes one argument -
bucket
. https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/aws/s3/#getBucket
c
Heh, too obvious for me to see, right? Thanks 🙂