CmdID

CmdID / Commands

aws-s3-website

Set the website configuration for a bucket. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Configure a bucket as a static website

aws s3 website s3://bucket-name --index-document index.htmlIdentify
--index-documentA suffix that is appended to a request that is for a directory on the website endpoint (e.g. if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character. AWS CLI reference

Configure an error page for the website

aws s3 website s3://bucket-name --index-document index.html --error-document error.htmlIdentify
--index-documentA suffix that is appended to a request that is for a directory on the website endpoint (e.g. if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character. AWS CLI reference
--error-documentThe object key name to use when a 4XX class error occurs. AWS CLI reference