I'm trying to set up a bucket for cloudtrail logs ...
# aws
s
I'm trying to set up a bucket for cloudtrail logs and the docs seem wrong: https://www.pulumi.com/docs/reference/pkg/aws/cloudtrail/trail/. The bucket name in the policy (
tf-test-trail
) isn't going to match the bucket name that pulumi picks (
foo-<id>
), right? What's the right way to do that? Is there anything like
current
that would let me get the bucket name so I can set the policy correctly?
Ah, I'm guessing at some point the bucket name was explicitly set, like here: https://github.com/pulumi/tf2pulumi/issues/30
That's a bit of a pain with multiple stacks.
b
You could create a separate bucket policy resource: https://www.pulumi.com/docs/reference/pkg/aws/s3/bucketpolicy/
s
ah, ok. I'll give that a shot.
thanks!