Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: DOC-2783

Include Page
INCL:_RC-OSU-Warning-EndOfLife
INCL:_RC-OSU-Warning-EndOfLife


Panel
bgColor#F6F5F5
borderWidth0

You can use an Access Control List (ACL) to set permissions for other users to access and manage your bucket. For more information, see Access Control List (ACL) Reference.

Include Page
INCL:_RC-General-Sent-CockpitNotAvailable
INCL:_RC-General-Sent-CockpitNotAvailable



Panel
borderColor#FFFFFF
bgColor#F6F5F5
borderWidth2
titleBGColor#E6E6E6
borderStylesolid
titleRelated Pages


  • To configure the ACL of a bucket, use the put-bucket-acl command following this syntax:

    Code Block
    languagetext
    titleRequest Sample
    $ aws s3api put-bucket-acl \
        --profile YOUR_PROFILE \
        --bucket BUCKET \
        --acl private \
        --grant-full-control "id=123456789012USER_ID, id=987654321098USER_ID" \
        --grant-read "id=123456789012USER_ID, id=987654321098USER_ID" \
        --grant-read-acp "id=123456789012USER_ID, id=987654321098USER_ID" \
        --grant-write "id=123456789012USER_ID, id=987654321098USER_ID" \
        --grant-write-acp "id=123456789012USER_ID, id=987654321098USER_ID" \
        --endpoint ENDPOINT

    Include Page
    INCL:_RC-General-SentPart-AWSCLIattributes
    INCL:_RC-General-SentPart-AWSCLIattributes

    • Include Page
      INCL:_RC-General-SentPart-AWSCLIProfile
      INCL:_RC-General-SentPart-AWSCLIProfile
    • bucket: The name of the bucket for which you want to set the ACL.

       


      Include Page
      INCL:_RC-OS-Important-ACLRules
      INCL:_RC-OS-Important-ACLRules

    • (optional) acl: The permissions you grant for your bucket (private | public-read | public-read-write | authenticated-read).
    • (optional) grant-full-control:  One or more account more IDs of users to users to whom you grant the full-control permission permission.

    • (optional) grant-read:  One  One or more account IDs of users to users to whom you grant theread permission permission.
    • (optional) grant-read-acp: One or more account more IDs of users to users to whom you grant the the read-acp permission permission.
    • (optional) grant-write: One  One or more account more IDs of users to users to whom you grant the the write permission.
    • (optional) grant-write-acp: One or more account more IDs of users to users to whom you grant the write-acp permission permission.
      Include Page
      INCL:_RC-OS-Important-ACLRulesGrantID
      INCL:_RC-OS-Important-ACLRules
      Include Page
      INCL:_RC-OS-Note-ACLRulesINCL:_RC-OS-Note-ACLRulesGrantID

      Include Page
      INCL:_RC-OS-SentPart-AWSCLIEndpoint
      INCL:_RC-OS-SentPart-AWSCLIEndpoint

   The ACL is configured for your bucket.



Panel
borderColor#FFFFFF
bgColor#F6F5F5
borderWidth2
titleBGColor#E6E6E6
borderStylesolid
titleTutorial: Setting Up a Bucket with Objects

Previous Step:

(optional) Enabling or Disabling Bucket Versioning

Next Step:


Include Page
INCL:_RC-General-Panel-AWSLegalMentions
INCL:_RC-General-Panel-AWSLegalMentions