Configuring our S3 Bucket for the web

Let's configure our bucket to act as a website bucket. Before we do that, let's access our index.html file from our web browser. To do this, select the index.html page and let's copy the URL besides Link that appears in the object settings panel:

Navigate to the link provided, and you should see your web application up and running:

There is one last step we should do. First, note that the URL is not friendly, and we are accessing our web using the index.html file. This is not the right way to deploy a web application on Amazon S3. Let's configure our bucket to explicitly make it a web bucket.

Let's navigate to the Properties tab in our bucket and select the static web hosting option. Select the use this bucket to host a website option, type index.html as the index page, and click on Save:

Cool! Now we are ready. Copy the new URL provided by AWS and navigate to it to see the web application up and running:

Awesome! You are ready to deploy your applications on AWS using S3 buckets without the need to provide any virtual server. Congratulations!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset