https://pulumi.com logo
Title
s

silly-address-30441

02/03/2021, 3:47 PM
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

brave-planet-10645

02/03/2021, 4:00 PM
You could create a separate bucket policy resource: https://www.pulumi.com/docs/reference/pkg/aws/s3/bucketpolicy/
s

silly-address-30441

02/03/2021, 4:03 PM
ah, ok. I'll give that a shot.
thanks!