Configure access control lists (ACLs) through an access point for a general purpose bucket
This section explains how to configure ACLs through an access point for a general purpose bucket using the Amazon Web Services Management Console, Amazon Command Line Interface, or REST API. For more information about ACLs, see Access control list (ACL) overview.
To configure ACLs through an access point in your Amazon Web Services account
Sign in to the Amazon Web Services Management Console and open the Amazon S3 console at https://console.amazonaws.cn/s3/
. -
In the navigation bar on the top of the page, choose the name of the currently displayed Amazon Web Services Region. Next, choose the Region that you want to list access points for.
-
In the navigation pane on the left side of the console, choose Access Points.
-
(Optional) Search for access points by name. Only access points in your selected Amazon Web Services Region will appear here.
-
Choose the name of the access point you want to manage or use.
-
Under the Objects tab, select the name of the object you wish to configure an ACL for.
-
Under the Permissions tab, select Edit to configure the object ACL.
Note
Amazon S3 currently doesn't support changing an access point's block public access settings after the access point has been created.
The following put-object-acl
example command shows how you can
use the Amazon CLI to configure access permissions through an access point using an ACL.
The following command applies an ACL to an existing object puppy.jpg
through an access point owned by Amazon Web Services account
111122223333
.
aws s3api put-object-acl --bucket arn:aws-cn:s3:
Amazon Web Services Region
:111122223333:accesspoint/my-access-point
--key puppy.jpg --acl private
Note
S3 automatically generate access point aliases for all access points and these aliases can be used anywhere a bucket name is used to perform object-level operations. For more information, see Access point for general purpose buckets aliases.
For more information and examples, see put-object-acl
You can use the REST API to configure access permissions through an access point using an ACL. For more information, see PutObjectAcl in the Amazon Simple Storage Service API Reference.