You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
* No tags are necessarily needed, so just click`Next: Review`.
60
+
* Review the presented information and if all seems good click`Create user`.
61
+
* You are presented with`Access key ID` and`Secret access key` which you will need to complete this example, so store them safely.
62
+
* Click`Close`.
63
+
64
+
5.[Install AWS Command Line Interface (AWS CLI)](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv1.html) to gain programmic access to AWS cloud.
65
+
66
+
6. Configure AWS CLI with command`aws configure` as desribed in the[instructions](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html#cli-configure-quickstart-config)
67
+
68
+
7. Create AWS S3 bucket for the web site content. Note that the S3 bucket names must be globally unique.
69
+
70
+
* The syntax is`aws s3 mb <bucket name>` as described in the[instructions](https://docs.aws.amazon.com/cli/latest/userguide/cli-services-s3-commands.html#using-s3-commands-managing-buckets-creating)
71
+
* For example`aws s3 mb s3://my-static-website-jh34jsjmg`
72
+
* Verify that the bucket was successfully created with command`aws s3 ls` which list the existing buckets
73
+
74
+
8. Configure the bucket as a web site with command`aws s3 website` as described in the[instructions](https://docs.aws.amazon.com/cli/latest/reference/s3/website.html).
* First create the content, at least`index.html` and`error.html` documents.
81
+
82
+
index.html
83
+
```
84
+
<!doctype html>
85
+
<head>
86
+
<title>My Static Web Site</title>
87
+
</head>
88
+
<body>
89
+
<h1>I'm the index.html</h1>
90
+
</body>
91
+
```
92
+
93
+
error.html
94
+
```
95
+
<!doctype html>
96
+
<head>
97
+
<title>My Static Web Site</title>
98
+
</head>
99
+
<body>
100
+
<h1>I'm the index.html</h1>
101
+
</body>
102
+
```
103
+
104
+
* 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)
* The web site URL format is`http://<bucket-name>.s3-website-<region-name>.amazonaws.com`
132
+
* E.g. this web site was created in`eu-west-1` region with name`my-static-website-jh34jsjmg` so it can be accessed via url`http://my-static-website-jh34jsjmg.s3-website-eu-west-1.amazonaws.com`