HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

aws s3 website — Set the website configuration for a bucket. See also: `aws s3`. More information: <https://docs.aws.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thewebsiteaws s3 websiteconfigurationcommandclisetfor

Problem

How to use the aws s3 website command: Set the website configuration for a bucket. See also: aws s3. More information: <https://docs.aws.amazon.com/cli/latest/reference/s3/website.html>.

Solution

aws s3 website — Set the website configuration for a bucket. See also: aws s3. More information: <https://docs.aws.amazon.com/cli/latest/reference/s3/website.html>.

Configure a bucket as a static website:
aws s3 website {{s3://bucket-name}} --index-document {{index.html}}


Configure an error page for the website:
aws s3 website {{s3://bucket-name}} --index-document {{index.html}} --error-document {{error.html}}

Code Snippets

Configure a bucket as a static website

aws s3 website {{s3://bucket-name}} --index-document {{index.html}}

Configure an error page for the website

aws s3 website {{s3://bucket-name}} --index-document {{index.html}} --error-document {{error.html}}

Context

tldr-pages: common/aws s3 website

Revisions (0)

No revisions yet.