put-bucket-cors

Sets the CORS rules configuration for a bucket. For more information about supported policy elements, see Applying the CORS Configuration to Buckets.

Usage

put-bucket-cors --bucket <value> --cors-configuration

Supported Options

--bucket: Bucket name
--cors-configuration: A JSON structured string or a JSON file

Example

aws s3api put-bucket-cors --endpoint http://<hostname>:<port_number> --profile testuser1 --bucket example_bucket --cors-configuration file:///root/s3cors.json

Loading...