Skip to content

Commit

Permalink
format readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
iluwatar committed Feb 14, 2021
1 parent edbea7d commit 7c01bc7
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions cloud-static-content-hosting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,32 +80,8 @@ the content globally.
9. Upload content to the bucket.

* First create the content, at least `index.html` and `error.html` documents.
* index.html

```html
<!doctype html>
<head>
<title>My Static Web Site</title>
</head>
<body>
<h1>I'm the index.html</h1>
</body>
```

* error.html

```html
<!doctype html>
<head>
<title>My Static Web Site</title>
</head>
<body>
<h1>I'm the index.html</h1>
</body>
```

* Upload the content to your bucket as described [here](https://docs.aws.amazon.com/cli/latest/userguide/cli-services-s3-commands.html#using-s3-commands-managing-objects-copy)
* E.g. `aws s3 cp index.html s3://my-static-website-jh34jsjmg` and `aws s3 cp error.html s3://my-static-website-jh34jsjmg`
* Upload the content to your bucket as described [here](https://docs.aws.amazon.com/cli/latest/userguide/cli-services-s3-commands.html#using-s3-commands-managing-objects-copy)
* E.g. `aws s3 cp index.html s3://my-static-website-jh34jsjmg` and `aws s3 cp error.html s3://my-static-website-jh34jsjmg`

10. Next we need to set the bucket policy to allow read access.

Expand Down

0 comments on commit 7c01bc7

Please sign in to comment.