Host your static site in AWS
Tags: aws, webdev, beginners
Published: 2021-07-26 01:56:32


REQUIREMENTS
- An AWS account
- Your smile face :)

#### So you are going to host your site to a service know as AWS S3
What is AWS S3?
S3 stand for {Simple storage solution}

**So S3 is**
>A place that you can store objects
>The service simply store stuffs,more specifically objects
>Object can be things like images files,Html documents files,Css files and javascript files


#### How to work with S3 management console
1.In search bar type the word (S3)

![As shown here](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wchgo413hk8vou67lyrc.png)
Select the first S3 shown and click to it hopefully you should see now the S3 management console..as a below picture

![As it here](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7fn5fwrb2f50uibig9vi.png)

2.Now you already navigate to a S3 management console you can see a button says create bucket
**S3 is composed of buckets** 
  >S3 bucket is basically a container where we put in files.
  >Think a bucket as a drive in a computer

- Click on create bucket
- Then enter a unique name for your bucket (nospaceallowed)



>**After inputting a unique name for a bucket now scroll down to the section named as PUBLIC ACCESS SETTING then UNCHECK the checkbox named block all public access and then further down CHECK to the acknowledge the warning box that will appear..**

>Click a create button at a bottom,if your name was unique then boom you just made a AWS S3 bucket


3.Back to S3 console management and navigate to your created bucket then click to it
*Now you are going to upload actual files in your S3 buckets*

- Click to an upload button
- Select the needed files/Folder

Scroll down to the section called Permissions as shown in a picture below and click to it you need to custom some permissions.
Again to a section **Everyone (public access)** check to  read checkboxs



![Permissions](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mr7hw4zhmg7ss7vklhno.png)

Also check to the acknowledge the warning box that will appear..

![Warning](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6t2n9c3yswjaslm2174e.png)

Scroll down the rest of way and click the apload button

After successfully upload some files back to S3  console management and select a your bucket then you will see as a picture show below..

![Below](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8sr0hegstyjxh9ys6z6t.png)

- Click on Properties tab
- Scroll down untill you find a section 'Static web hosting'
- Enable static web hosting and enter required input that will show up

![Star](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sebgdro1tq7jgygu6ovh.png)

After successfully enable hosting scroll again to 'Static web hosting'
 - Then you will find out a link as a picture below


![Below](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yxsruzy4s1v7y3bb96p6.png)

Hopefully your site now is deployed to AWS [Learn more here](https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html)


### Thanks if you reach out to the end

Lets connect here is my [linkedin profile](https://www.linkedin.com/in/paschal-maximillian-00b558196/)