mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
19 lines
528 B
Plaintext
19 lines
528 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|