Topic > Why Amazon Aws S3 is better for static web hosting

IndexMaterialsMethodPerformance AnalysisEconomic Analysis DataAmazon is the largest online retail giant in the world. Jeff Bezos incorporated the company in July 1994, launching the website to the public a year later. The original name was supposed to be "Cadabra", but Jeff Bezos mistakenly heard it as "Cadaver". The company before starting the online retail business primarily focused on selling books that were sold out of Bezos' garage. Today the company operates internationally. Selling consumer electronics, the company provides computing, database storage and other AWS services, as well as fulfillment and serving of digital content subscriptions. Say no to plagiarism. Get a tailor-made essay on "Why Violent Video Games Shouldn't Be Banned"? Get an original essay Amazon Web Services (AWS) was launched in 2006 from the internal infrastructure created by amazon.com to manage online retail operations. It was the first company to offer pay-as-you-go cloud computing models that provide users with compute and storage services. AWS offers services from dozens of available data centers around the world, called Availability Zones (AZs) around the world. Availability Zones are represented as multiple physical data centers, and a Region is a collection of Availability Zones in geographic proximity connected via low-latency network links. AZ customers can have virtual machines replicate data across different zones of the AZ to provide a better infrastructure that can be resilient to the failure of particular servers or the entire data center. It provides more than 100 services which include the following: Compute Database, data management Storage Network Migration, hybrid cloud Management, monitoring Development tools and application services Big data management, analytics Security, governance Artificial intelligence Mobile development Messaging, notifications Other services such as Amazon WorkDocs, Amazon WorkSpaces, Amazon AppStream, Amazon IoT Button, AWS Greengrass.The main focus of this project was on storage and compute service. Amazon Simple Storage Service(S3) provides scalable object storage for data backup and analytics. Businesses can reduce costs with the use of S3, for example an IT administrator can store data and files as S3 objects which can be located within S3 buckets to keep them in a well-organized manner. Amazon Elastic Compute Cloud (EC2) helps provide virtual servers called instances for computing capacity. In this report I will collect two of the above services EC2 and S3. Materials In this part of the project I will elaborate the materials used for the project that made it possible to achieve the project objective and provide their representation as follows: Amazon Web Services Management Console. It is a browser-based GUI to enable AWS to manage services.Terminal (MAC operating system). It is similar to CMD used in Windows OS which helps to connect via Secure Shell (SSH) to Centos OS. Cisco AnyConnect Secure Mobility Client. It is a program that helps you connect to the campus server, so you can access the virtual machine data. Centos OS virtual machine that is hosted on the coivcenter1.hh.nku.edu server. It is a Linux-based operating system hosted on the command line interface (CLI) of the coivecenter1.hh.nku.edu.Amazon web service. AWS services are managed and configured by the CLI, called a command line tool. Ubuntu Apache HTTP Sever instance on Amazon Elastic Cloud (EC2). It is a web server that helps to serveHTTPS and HTTP requests. Amazon Web Service Elastic Cloud (EC2) and Ubuntu EC2 instance. Linux is a virtual machine hosted on Amazon Web Service (AWS) buckets. Amazon Simple Service Storage S3. This is a storage space hosted on Amazon Web Service. Amazon Monthly Calculator. It is a calculator used to measure the cost associated with services. Google Chrome web browser. Used to run the web-hosted test. Microsoft Excel. It is used to analyze the collected data and provide graphical visual information. Apache HTTP Benchmark Tool, ab.MethodIn this part of the project I will look at completing this project using the materials as described in the previous part of the project. To get the final result of the project I followed the below steps carefully: -Navigate in your web browser and visit the web page https://console.aws.amazon.com/ and create a free level account and log in with your credentials once finished with registering for the account. Once you have successfully logged into the console, go to the “AWS Services” search tab and search for “IAM” service and click on it as shown in the following image. You will see the following screen when you navigate to IAM. It is an identity and access management page. It will help you maintain and configure user access to your account. As you see in the image above, on the left side, when you see the navigation bar as an arrow, click on "Users". There will be a new web page which will show two options like “Add User” and “Delete User”. Click the “Add User” button and it will guide you to add a new user to the web page as shown in the following image. Once you have filled out the HTML form displayed on the webpage, remember to check the boxes labeled Programmatic Access, AWS Management Console Access, and Custom Password. Uncheck the Require password reset box and then go to the next: Authorization button. As you move to the next page you will be asked to select permissions for the user. Note that if no user group has been created, you will first need to create a group for the user. As you can see in the image below, a group has been created, so now select the checkbox under the selection policy to set permission limit with Admin Access and select the group that has been created and go to the next button: revision. When you navigate to the next page you will be asked to review the details you provided previously. Finally, after reviewing, click "Create User". The Success message box will appear and there will be a button to download the .csv file. The .csv file will contain important access key ID and secret access key which plays an important role in linking your account to AWS account with the help of AWS CLI tool. Open the terminal window [If you are using the MAC operating system, otherwise from the Windows operating system open CMD]. Connect to the NKU Centos OS virtual machine via SSH connection. We recommend that you connect via the NKU network, otherwise you will not be able to access it. To access the AWS CLI tool, you will need root access, so switch to root access. Enter the "aws configure" command to configure the AWS CLI tool so you can connect to your AWS account. You will be asked to enter your AWS Access Key ID, then your AWS Secret Access Key, Region name, and output. This data will be in your .csv file. The next step is to create the EC2 instance. You will need to create a security group to allocate to EC2 before creating the EC2 instance. It can be done by entering the command as shown in the posted image ofbelow: You will need to add rules to the security group by entering the following commands as shown in the image below: [You will need two different rules for two different ports, one for SSH (22) and another for HTTP (80). To check if the rules have been added to your security group you can use the command "aws ec2 description-security-groups --group-names your_username". When you connect to your EC2 instance to connect you will need a pair of keys and to do this you will use the command "aws ec2 create-key-pair --key-name your_username-key --query 'KeyMaterial' --output text > devenv -key.pem". To make your file accessible only to you you will have to modify file permissions by entering the command "chmod 400 devenv-key.pem (your .pem key)". the command aws ec2 run-instances --image-id ami-d9a98cb0 --count 1 --instance-type t1.micro --key-name your_username-key --security-groups your_username”. Instance ID will result in the project's end goal being missed.] You will need the public IP address or public DNS name of the instances to gain access to the instance. Waiting about 30 seconds, run the command "aws ec2 description-instances --instance-ids your_instance_id" (to get network information). As shown in the following image. To connect to the instance, you will need to run the ssh command ssh -i devenv-key.pem ubuntu@the_public_IP_address_of_your_instance. A message will appear asking Are you sure you want to continue connecting (yes/no)?”, type “Yes” to continue. When promoted, type "sudo -s" to log in to root mode. To run the Apache Web Server on your EC2 instance, enter the following command: apt-get updateapt-get install apache2/etc/init.d/apache2 restartTo edit the index.html file you will need to edit it by entering the command “vim /var/www /index.html”. To enter input mode, press the alphabetic “I” key on your keyboard. To save, press "esc" then ":" + "w" + "q" and press "Enter", after which you will exit the editor.xix. Once done, visit http://the_public_IP_address_of_your_instance/ in your web browser. You should see it works!xx. The EC2 instance is still running. It has been active since we logged into the AWS virtual machine. To install the Apache server and edit the index.html file we need to log out of the virtual machine and redirect to the NKU virtual machine to create an "exit" S3 bucket to do so. It will help you log out of your AWS root user login account. To achieve the project goal you will need to setup S3 storage which can be done by following the command shown in the image below (make sure to include your username and not the username you see below). You will need to create a directory called "s3www" go into that directory and create an html file called "index.html" using the vim command. When you edit the file you will need the following contents to be included in the file: -It works! This website is hosted by Amazon AWS S3. Once the above step is done, you will have to upload the file and make it publicly available in the bucket using the following image command and you will see the output as shown in the image below: To access the S3 object you will go to the browser and enter the http link: //s3.amazonaws.com/your_user_name/index.html. To start static web hosting, we first need to enable the bucket and to do this you will use the command “aws s3 website s3 ://your_user_name/ --index-document index.html”. When you enter the command in your web browser, you will see the message that says Works and underneath it will say "This website is hosted by Amazon AWS S3". Finally, we have://.