Bucket policies regulate who has what access to a bucket and its contents. The header argument can beused to specify “canned” policies and put_bucket_policy can be used to specify a more complex policy. The AWS Policy Generator can be useful for creating the appropriate JSON policy structure.
put_bucket("examplebucket")
# set a "canned" ACL to, e.g., make bucket publicly readable put_bucket("examplebucket", headers = list(`x-amz-acl` = "public-read")