LinuxCommandLibrary

aws-s3-website

Set the website configuration for a bucket.

TLDR

Configure a bucket as a static website

$ aws s3 website [s3://bucket-name] --index-document [index.html]
copy


Configure an error page for the website
$ aws s3 website [s3://bucket-name] --index-document [index.html] --error-document [error.html]
copy

Copied to clipboard