To configure the ACL of a bucket, use the put-bucket-acl command following this syntax:
This command contains the following attributes that you need to specify:
profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.
bucket: The name of the bucket for which you want to set the ACL.
acl: The permissions you grant for your bucket (
grant-full-control: One or more account IDs of users to whom you grant the
grant-read: One or more account IDs of users to whom you grant the
grant-read-acp: One or more account IDs of users to whom you grant the
grant-write: One or more account IDs of users to whom you grant the
grant-write-acp: One or more account IDs of users to whom you grant the
- When specifying new permissions, all the previous permissions are replaced. Therefore, you need to specify both the existing permissions that you want to keep (including for yourself) and the new permissions that you want to give in a single command.
- If you are the owner of the bucket, you can lose your own permissions but not the ability to manage the ACL itself.
- You can grant one or more permissions to one or more users in the same command.
- You can specify the email address of a user instead of the account ID, using the following format:
endpoint: The endpoint corresponding to the service (
osu) and Region you want to send the request to, in the following format: https://<SERVICE>.<REGION>.outscale.com
The ACL is configured for your bucket.