https://pulumi.com logo
#python
Title
# python
o

orange-australia-91292

12/28/2019, 11:59 AM
I get the same error when trying to set public access policy on a bucket that is created a few lines before:
Copy code
s3.BucketPublicAccessBlock(
            resource_name=f"{frontend_bucket_name}_block_public_access",
            bucket=bucket.arn,
            block_public_acls=True,
            ignore_public_acls=True,
            restrict_public_buckets=True,
            block_public_policy=True,
        )
where
bucket
is a resource that was just created by Pulumi with
s3.Bucket()