I get the same error when trying to set public acc...
# python
o
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()