https://pulumi.com logo
#aws
Title
# aws
l

limited-parrot-36603

02/20/2024, 10:53 PM
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

millions-furniture-75402

02/20/2024, 10:55 PM
Do you prefer to use CloudTrail to get these events?
l

limited-parrot-36603

02/20/2024, 10:55 PM
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

millions-furniture-75402

02/20/2024, 11:02 PM
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

limited-parrot-36603

02/21/2024, 12:00 AM
Makes sense - ty