Thanks for pointing that out. It seems that this issue comes from a misinterpretation of the AWS CLI tool. If you run awslocal s3 website help you’ll see:
NAME
website -
DESCRIPTION
Set the website configuration for a bucket.
SYNOPSIS
website
<S3Uri>
[--index-document <value>]
[--error-document <value>]
......
OPTIONS
paths (string)
--index-document (string) A 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.
........
The value for --index-document should be the key of the file in the bucket, and it should not contain a slash character, which is the cause of the error message.
We’ll have a look into that and fix the tutorial. Also, we’re glad that you managed to get past this small inconvenience.