Does anyone have an example of logging s3 object e...
# aws
l
Does anyone have an example of logging s3 object events by updating a trail vs creating a new trail? https://www.pulumi.com/registry/packages/aws/api-docs/cloudtrail/trail/#logging-all-s3-object-events-by-using-basic-event-selectors
m
Do you prefer to use CloudTrail to get these events?
l
Yes as we already have downstream infrastructure to log cloudtrail to a bucket and then ingest those events into our data warehouse
I don't actually see an update trail in pulumi docs though - just new trail. Despite update-trail being a valid AWS API
m
In some cases, you may have to use the AWS SDK directly to achieve what you need if not covered by the provider. I've only created new trails, and I wasn't able to find another way to update the trail either, but maybe we're missing something.
l
Makes sense - ty