This message was deleted.
# aws
s
This message was deleted.
l
You’re getting the error trying access
bucket.arn
with something like:
Copy code
import pulumi
import pulumi_aws as aws

bucket = aws.s3.Bucket("newBucket")
Maybe try
bucket.id
instead?
g
q
I found a way to do it yesterday:
Copy code
policy = bucket.id.apply(lambda id:
            '''
            {{
...
               "Resource": "arn:aws:s3:::{my_id}/*"
...
'''.format(my_id=id)...