Hi there, I'm trying to create a s3 bucket for my ...
# general
b
Hi there, I'm trying to create a s3 bucket for my app assets so it must be public(or at least public read) but when I try the following code
Copy code
self.bucket = aws_native.s3.Bucket(
            self.name,
            access_control='PublicRead',
            ownership_controls=aws_native.s3.BucketOwnershipControlsArgs(
                rules=[{
                    'objectOwnership': 'BucketOwnerPreferred'
                }]
            ),
            public_access_block_configuration=(
                aws_native.s3.BucketPublicAccessBlockConfigurationArgs(
                    block_public_acls=False,
                    block_public_policy=False,
                    ignore_public_acls=False,
                    restrict_public_buckets=False
                )
            ),
            opts=pulumi.ResourceOptions(parent=self)
        )