This section explains how to use the qq s3_set_bucket_policy command.

For more information, see:

Examples

To Configure an Access Policy for an S3 Bucket

Run the qq s3_set_bucket_policy command, use the --bucket flag to specify the name of your bucket and the --file flag to specify the JSON file with the access policy. For example:

qq s3_set_bucket_policy --bucket MyBucket --file mypolicy.json

Description

Upload the access policy JSON file that the –file flag specifies to the S3 bucket name that the –bucket flag specifies.

Usage

qq s3_set_bucket_policy [-h] --bucket BUCKET --file FILE [--allow-remove-self]

Flags

Flag Name Required Description
--bucket Yes The name of the S3 bucket whose policy is to be configured
--file Yes The access policy file to upload. For an access policy template, use the --example flag.
--allow-remove-self No Allow the configured policy to remove the ability to modify itself from the current user.