Editing Webpage content

Step 22: Let's explain the codes in the index.html page we uploaded.

AWS-S3-webpage 22

<html>
    <head>
        <title> R-IoT-C Project 2021 Web Page </title>
    </head>
    <body>
        <h3> Welcome to the R-IoT-C Project Webpage </h3>
        <p> <h4> This Project support by Croatian National Agency under Erasmus+ KA220 Strategic Partnership
        <p><h4> Coordinator: Croatia, Partners: Italy, Lithuania, Romania, Spain and Turkey <h4>
    </body>
</html>


<html> It is the starting code of html pages. The </html> tag is used for the ending.

<head> The title settings of the page are defined in this section. The code ends with the </head> tag

<title> It is the page title to be displayed in the web browser.

<body> Each action that will be displayed on the web page is included here. It ends with the </body> tag.

<h3> It is used for a title in bold font within the text.

<p>  It is used to make paragraphs.

<h4> It is used for a title in a smaller font than h3.

Step 23: We enter the riotwebpage bucket that we created from the bucket field. From here, we select the "Permissions" tab.

AWS-S3-webpage 23

Step 24: On the screen, we click the Edit button to enter the Bucket policy field and write the following codes.

AWS-S3-webpage 24

Code:

{

    "Version": "2012-10-17",

    "Statement": [

        {

            "Sid": "PublicReadGetObject",

            "Effect": "Allow",

            "Principal": "*",

            "Action": "s3:GetObject"

            "Resource": "arn:aws:s3::: Bucket-Name /*"

        }

    ]

}

Step 25: After typing the codes, we exit by clicking the “Save Changes ” button at the bottom of the page.

Step-26: We go back to the index.html page we loaded on the Bucket and click on the index.html to open the Properties tab. This is the web address where our index.html content can be accessed under the Object URL . Click here to reach our website.

AWS-S3-webpage 26

Step-27: The interpretation of the codes of our website is displayed.

AWS-S3-webpage 27