{"id":5281,"date":"2019-05-13T17:54:54","date_gmt":"2019-05-13T12:24:54","guid":{"rendered":"https:\/\/www.innovationm.com\/blog\/?p=5281"},"modified":"2023-01-20T18:55:30","modified_gmt":"2023-01-20T13:25:30","slug":"aws-ec2-how-to-launch-an-instance-and-host-a-website","status":"publish","type":"post","link":"https:\/\/www.innovationm.com\/blog\/aws-ec2-how-to-launch-an-instance-and-host-a-website\/","title":{"rendered":"AWS  EC2  How to Launch an Instance and Host a Website"},"content":{"rendered":"<p>In this tutorial, we will learn How to launch an EC2 Server which will be Ubuntu Linux Virtual Server and host a website by serving index.html.<\/p>\n<h2><b>What is AWS?<\/b><\/h2>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"wp-image-5282 aligncenter\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/AWS_logo-300x111.png\" alt=\"\" width=\"446\" height=\"165\" \/><\/p>\n<p>Amazon Web Services(AWS) is an Amazon.com subsidiary which offers cloud-computing services at very affordable rates, therefore making its customer base.<\/p>\n<p>Key AWS Services are EC2, RDS, S3, CloudFront. There are a total of 140+ Services which covers\u00a0compute, storage, databases, analytics, networking, mobile, developer tools,<br \/>\nmanagement tools, IoT, security, and enterprise applications<\/p>\n<p><strong>Amazon EC2 Instance<\/strong><\/p>\n<p>Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the AWS cloud, in other words, it provides us with a virtual Server with different capacities to best suit your needs.\u00a0Amazon EC2 enables you to scale up or down to handle changes in requirements or spikes in traffic with ease<\/p>\n<p>An<strong>\u00a0on-demand<\/strong>\u00a0EC2 instance from AWS where the user can rent the virtual server per hour and use it to deploy his\/her own applications.<\/p>\n<p id=\"ec2-launch-instance\"><strong>Step 1: Launch an Instance<\/strong><img decoding=\"async\" class=\"wp-image-5289 aligncenter\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/launch-instance-e1557309678655.png\" alt=\"\" width=\"533\" height=\"175\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/launch-instance-e1557309678655.png 404w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/launch-instance-e1557309678655-300x99.png 300w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><\/p>\n<ul>\n<li>Log into the AWS console at <strong><a href=\"https:\/\/console.aws.amazon.com\/ec2\/\">https:\/\/console.aws.amazon.com\/ec2\/<\/a>.<\/strong><\/li>\n<li>From the top right corner of the EC2 dashboard, choose the AWS Region in which you want to launch the EC2 server.<\/li>\n<li>From the dashboard, choose <strong>Launch Instance<\/strong>.<\/li>\n<\/ul>\n<p><strong>Choose Amazon Machine Image (AMI)<\/strong><\/p>\n<p>Amazon Machine Image or more commonly known as AMI which includes an operating system, and required software\/Applications which depends on AMI.<img decoding=\"async\" class=\"alignleft wp-image-5298 \" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/Choose-AMI-2.jpg\" alt=\"\" width=\"553\" height=\"106\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/Choose-AMI-2.jpg 1174w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/Choose-AMI-2-300x58.jpg 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/Choose-AMI-2-768x148.jpg 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/Choose-AMI-2-1024x197.jpg 1024w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/Choose-AMI-2-624x120.jpg 624w\" sizes=\"(max-width: 553px) 100vw, 553px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>For our Example, we will use <strong>Ubuntu Server 18.04 LTS (HVM), SSD Volume Type<\/strong> (This image is free\u00a0tier eligible)<\/p>\n<p>Click <strong>Select <\/strong>to choose AMI.<\/p>\n<p><strong>Choose EC2 Instance Types<\/strong><\/p>\n<p>In the next step, we need to choose the instance type. For our case, we will use <strong>t2.micro<\/strong> which is free tier eligible.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"wp-image-5306 aligncenter\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/Choose-Instance.jpg\" alt=\"\" width=\"544\" height=\"208\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/Choose-Instance.jpg 906w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/Choose-Instance-300x115.jpg 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/Choose-Instance-768x294.jpg 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/Choose-Instance-624x239.jpg 624w\" sizes=\"(max-width: 544px) 100vw, 544px\" \/><\/p>\n<p><strong>For details of AWS instance Type check &#8211;<\/strong><\/p>\n<p><a href=\"https:\/\/aws.amazon.com\/ec2\/instance-types\/\">https:\/\/docs.aws.amazon.com\/AWSEC2\/latest\/UserGuide\/instance-types.html<\/a><\/p>\n<p><strong>Configure Instance<\/strong><\/p>\n<p>For our case, we can leave default settings.<\/p>\n<p>Number of Instance &#8211; How many Instances you wish to launch, one in our case.<\/p>\n<p>Purchasing Options &#8211; Launching in On Demand pricing (We can also choose spot instance)<\/p>\n<p>Read more on Spot Instance &#8211;\u00a0<a href=\"https:\/\/aws.amazon.com\/ec2\/spot\/\">https:\/\/aws.amazon.com\/ec2\/spot\/<\/a><\/p>\n<p>I will write a detailed description on full settings later.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-5314 aligncenter\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/configure-instance.png\" alt=\"\" width=\"502\" height=\"277\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/configure-instance.png 800w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/configure-instance-300x165.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/configure-instance-768x423.png 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/configure-instance-624x344.png 624w\" sizes=\"(max-width: 502px) 100vw, 502px\" \/><\/p>\n<p>Click on <strong>Next: Add Storage.<\/strong><\/p>\n<p><strong>Add Storage<\/strong><\/p>\n<p>Elastic Beanstalk (EBS) Volume is a Virtual Hard Disk in the cloud.<\/p>\n<p>Volume type Root indicates that Root volume will be partition from where our OS will boot.<\/p>\n<p>We can add additional partitions if we want by clicking Add New Volume.<\/p>\n<p>Delete on Termination means the EBS will be deleted if we delete the EC2 instance.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-5316 aligncenter\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/Add-Storage-1024x402.jpg\" alt=\"\" width=\"518\" height=\"203\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/Add-Storage-1024x402.jpg 1024w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/Add-Storage-300x118.jpg 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/Add-Storage-768x302.jpg 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/Add-Storage-624x245.jpg 624w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/Add-Storage.jpg 1355w\" sizes=\"(max-width: 518px) 100vw, 518px\" \/><\/p>\n<h2>Add Tags (optional)<\/h2>\n<p>Add tags provides a key-value pair to mark your instance, It can be used for better cost analysis.<\/p>\n<p>It is very useful in case of large infrastructures with many Instances.<\/p>\n<p><strong>Click<\/strong> Next:\u00a0Create a Security Group.<\/p>\n<p><strong>To read more on Tags &#8211;<\/strong><\/p>\n<p><a href=\"https:\/\/docs.aws.amazon.com\/AWSEC2\/latest\/UserGuide\/Using_Tags.html\">https:\/\/docs.aws.amazon.com\/AWSEC2\/latest\/UserGuide\/Using_Tags.html<\/a><\/p>\n<p><strong>Configure Security Groups<\/strong><\/p>\n<p>Security Groups are like firewalls, The Security Rules define what type of traffic we want to allow.<\/p>\n<p>Since we wish to <strong>SSH (port &#8211; 22)<\/strong> into our EC2 Server and allow web traffic through <strong>HTTP (port &#8211; 80) and HTTPS (port &#8211; 443)<\/strong>.<\/p>\n<p>We will also set the\u00a0<strong>source as My IP for SSH<\/strong> and for web traffic i.e., <strong>HTTP and HTTPS we will put Anywhere.<\/strong><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-5317 aligncenter\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/configure-Security-Group-1024x396.jpg\" alt=\"\" width=\"625\" height=\"242\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/configure-Security-Group-1024x396.jpg 1024w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/configure-Security-Group-300x116.jpg 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/configure-Security-Group-768x297.jpg 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/configure-Security-Group-624x241.jpg 624w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/configure-Security-Group.jpg 1350w\" sizes=\"(max-width: 625px) 100vw, 625px\" \/><\/p>\n<p>Click <strong>Review and Launch<\/strong>.<\/p>\n<p><strong>Review Instances<\/strong><\/p>\n<p>Review the instance settings and hit launch.<\/p>\n<p>We will get a dialog where we will create a Public and Private key pair. The private key is stored in Instance and the public key is given to user Do not let anyone know your public or private key otherwise they may use it to compromise your virtual machines.<img loading=\"lazy\" decoding=\"async\" class=\"wp-image-5319 aligncenter\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/key-pair.png\" alt=\"\" width=\"527\" height=\"389\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/key-pair.png 691w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/key-pair-300x221.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/key-pair-624x461.png 624w\" sizes=\"(max-width: 527px) 100vw, 527px\" \/><\/p>\n<p>Click on <strong>Download Key Pair\u00a0<\/strong>to download key pair and keep it safe.<img loading=\"lazy\" decoding=\"async\" class=\"wp-image-5321 aligncenter\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/launching-e1557487114518.png\" alt=\"\" width=\"384\" height=\"279\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/launching-e1557487114518.png 401w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/launching-e1557487114518-300x218.png 300w\" sizes=\"(max-width: 384px) 100vw, 384px\" \/><\/p>\n<p>After a successful launch of instance, you will be taken to Instance screen.<\/p>\n<p>When the status of Server change from pending to running, you can SSH into your Server to perform access.<\/p>\n<h4 id=\"9dc8\" class=\"graf graf--h4 graf--leading\">SSH into our machine and install the web\u00a0server<\/h4>\n<p>Check your public address from instance details or assign an elastic IP.<img loading=\"lazy\" decoding=\"async\" class=\"wp-image-5322 aligncenter\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/elastic-IP-1024x324.jpg\" alt=\"\" width=\"600\" height=\"190\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/elastic-IP-1024x324.jpg 1024w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/elastic-IP-300x95.jpg 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/elastic-IP-768x243.jpg 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/elastic-IP-624x197.jpg 624w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/elastic-IP.jpg 1319w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>After allocating address you must attach it to your Server.<\/p>\n<p>Choose an Instance from the drop-down menu and click <strong>Associate <\/strong>to attach it to Server.<img loading=\"lazy\" decoding=\"async\" class=\"wp-image-5323 aligncenter\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/IP-attach.jpg\" alt=\"\" width=\"603\" height=\"279\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/IP-attach.jpg 827w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/IP-attach-300x139.jpg 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/IP-attach-768x356.jpg 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/IP-attach-624x289.jpg 624w\" sizes=\"(max-width: 603px) 100vw, 603px\" \/><\/p>\n<p>Now we need to SSH into our Server (Here we are using AWS Dashboard but we can also use putty or terminal to access SSH, more on that later )-<\/p>\n<p><strong>ssh -i &lt;path_to_key_pair_file&gt; ubuntu@&lt;public_ip_from_dashboard&gt;<\/strong><\/p>\n<p>Let&#8217;s sign it to superuser (root) by &#8211;<\/p>\n<p><strong>sudo su<\/strong><\/p>\n<p>Now let&#8217;s update all services\/packages and install apache web server &#8211;<\/p>\n<p><strong>apt-get update<\/strong><\/p>\n<p><strong>apt-get install apache2<\/strong><\/p>\n<p>Now let&#8217;s start the service &#8211;<\/p>\n<p><strong>service apache2 start<\/strong><\/p>\n<p>Server index.html<\/p>\n<p>You must have your files to be served<\/p>\n<p>By default apache2 web server serves a index.html from location\u00a0<strong>\/var\/www\/html,<\/strong>\u00a0now lets copy your code and paste in this directory (<strong>\/var\/www\/html<\/strong>).<\/p>\n<p>We need to reload apache2 web server now. Type the following command &#8211;<\/p>\n<p><strong>service apache2 reload.<\/strong><\/p>\n<p>Now let&#8217;s check on the browser if our website through index.html is served or not &#8211;<\/p>\n<p>Copy public address or Elastic IP of your Server from EC2 console by selecting your Server and paste it on the browser.<\/p>\n<p><strong>Congratulations!!!<\/strong> You can see your website now.<\/p>\n<p><strong>You may find us on AWS Here:\u00a0 <a href=\"https:\/\/aws.amazon.com\/partners\/find\/partnerdetails\/?n=InnovationM%20Mobile%20and%20Web%20Technologies%20Private%20Ltd.&amp;id=0010L00001w1C8hQAE\"><em>Partner Solutions Finder.<\/em><\/a><\/strong><\/p>\n<p>Stay tuned for our next blog : <em><strong><a href=\"https:\/\/www.innovationm.com\/blog\/aws-cloudwatch-monitor-ec2-instances-create-alarms\/\">Monitor EC2 Instances &amp; Create Alarms.<\/a><\/strong><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will learn How to launch an EC2 Server which will be Ubuntu Linux Virtual Server and host a website by serving index.html. What is AWS? Amazon Web Services(AWS) is an Amazon.com subsidiary which offers cloud-computing services at very affordable rates, therefore making its customer base. Key AWS Services are EC2, RDS, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5327,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[350,102,258],"tags":[351,272,347],"class_list":["post-5281","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-amazon-web-services","category-web-service","category-web-technology","tag-amazon-web-services","tag-aws","tag-aws-ec2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>AWS EC2 How to Launch an Instance and Host a Website - InnovationM - Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.innovationm.com\/blog\/aws-ec2-how-to-launch-an-instance-and-host-a-website\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AWS EC2 How to Launch an Instance and Host a Website - InnovationM - Blog\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we will learn How to launch an EC2 Server which will be Ubuntu Linux Virtual Server and host a website by serving index.html. What is AWS? Amazon Web Services(AWS) is an Amazon.com subsidiary which offers cloud-computing services at very affordable rates, therefore making its customer base. Key AWS Services are EC2, RDS, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.innovationm.com\/blog\/aws-ec2-how-to-launch-an-instance-and-host-a-website\/\" \/>\n<meta property=\"og:site_name\" content=\"InnovationM - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-13T12:24:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-20T13:25:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/ec2_1-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1145\" \/>\n\t<meta property=\"og:image:height\" content=\"636\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"InnovationM Admin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InnovationM Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/aws-ec2-how-to-launch-an-instance-and-host-a-website\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/aws-ec2-how-to-launch-an-instance-and-host-a-website\\\/\"},\"author\":{\"name\":\"InnovationM Admin\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#\\\/schema\\\/person\\\/a831bf4602d69d1fa452e3de0c8862ed\"},\"headline\":\"AWS EC2 How to Launch an Instance and Host a Website\",\"datePublished\":\"2019-05-13T12:24:54+00:00\",\"dateModified\":\"2023-01-20T13:25:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/aws-ec2-how-to-launch-an-instance-and-host-a-website\\\/\"},\"wordCount\":927,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/aws-ec2-how-to-launch-an-instance-and-host-a-website\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/ec2_1-1.png\",\"keywords\":[\"amazon web services\",\"AWS\",\"aws EC2\"],\"articleSection\":[\"amazon web services\",\"Web service\",\"Web Technology\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/aws-ec2-how-to-launch-an-instance-and-host-a-website\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/aws-ec2-how-to-launch-an-instance-and-host-a-website\\\/\",\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/aws-ec2-how-to-launch-an-instance-and-host-a-website\\\/\",\"name\":\"AWS EC2 How to Launch an Instance and Host a Website - InnovationM - Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/aws-ec2-how-to-launch-an-instance-and-host-a-website\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/aws-ec2-how-to-launch-an-instance-and-host-a-website\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/ec2_1-1.png\",\"datePublished\":\"2019-05-13T12:24:54+00:00\",\"dateModified\":\"2023-01-20T13:25:30+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#\\\/schema\\\/person\\\/a831bf4602d69d1fa452e3de0c8862ed\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/aws-ec2-how-to-launch-an-instance-and-host-a-website\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/aws-ec2-how-to-launch-an-instance-and-host-a-website\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/aws-ec2-how-to-launch-an-instance-and-host-a-website\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/ec2_1-1.png\",\"contentUrl\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/ec2_1-1.png\",\"width\":1145,\"height\":636},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/aws-ec2-how-to-launch-an-instance-and-host-a-website\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AWS EC2 How to Launch an Instance and Host a Website\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/\",\"name\":\"InnovationM - Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#\\\/schema\\\/person\\\/a831bf4602d69d1fa452e3de0c8862ed\",\"name\":\"InnovationM Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g\",\"caption\":\"InnovationM Admin\"},\"sameAs\":[\"http:\\\/\\\/www.innovationm.com\\\/\"],\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/author\\\/innovationmadmin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AWS EC2 How to Launch an Instance and Host a Website - InnovationM - Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.innovationm.com\/blog\/aws-ec2-how-to-launch-an-instance-and-host-a-website\/","og_locale":"en_US","og_type":"article","og_title":"AWS EC2 How to Launch an Instance and Host a Website - InnovationM - Blog","og_description":"In this tutorial, we will learn How to launch an EC2 Server which will be Ubuntu Linux Virtual Server and host a website by serving index.html. What is AWS? Amazon Web Services(AWS) is an Amazon.com subsidiary which offers cloud-computing services at very affordable rates, therefore making its customer base. Key AWS Services are EC2, RDS, [&hellip;]","og_url":"https:\/\/www.innovationm.com\/blog\/aws-ec2-how-to-launch-an-instance-and-host-a-website\/","og_site_name":"InnovationM - Blog","article_published_time":"2019-05-13T12:24:54+00:00","article_modified_time":"2023-01-20T13:25:30+00:00","og_image":[{"width":1145,"height":636,"url":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/ec2_1-1.png","type":"image\/png"}],"author":"InnovationM Admin","twitter_misc":{"Written by":"InnovationM Admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.innovationm.com\/blog\/aws-ec2-how-to-launch-an-instance-and-host-a-website\/#article","isPartOf":{"@id":"https:\/\/www.innovationm.com\/blog\/aws-ec2-how-to-launch-an-instance-and-host-a-website\/"},"author":{"name":"InnovationM Admin","@id":"https:\/\/www.innovationm.com\/blog\/#\/schema\/person\/a831bf4602d69d1fa452e3de0c8862ed"},"headline":"AWS EC2 How to Launch an Instance and Host a Website","datePublished":"2019-05-13T12:24:54+00:00","dateModified":"2023-01-20T13:25:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.innovationm.com\/blog\/aws-ec2-how-to-launch-an-instance-and-host-a-website\/"},"wordCount":927,"commentCount":0,"image":{"@id":"https:\/\/www.innovationm.com\/blog\/aws-ec2-how-to-launch-an-instance-and-host-a-website\/#primaryimage"},"thumbnailUrl":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/ec2_1-1.png","keywords":["amazon web services","AWS","aws EC2"],"articleSection":["amazon web services","Web service","Web Technology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.innovationm.com\/blog\/aws-ec2-how-to-launch-an-instance-and-host-a-website\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.innovationm.com\/blog\/aws-ec2-how-to-launch-an-instance-and-host-a-website\/","url":"https:\/\/www.innovationm.com\/blog\/aws-ec2-how-to-launch-an-instance-and-host-a-website\/","name":"AWS EC2 How to Launch an Instance and Host a Website - InnovationM - Blog","isPartOf":{"@id":"https:\/\/www.innovationm.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.innovationm.com\/blog\/aws-ec2-how-to-launch-an-instance-and-host-a-website\/#primaryimage"},"image":{"@id":"https:\/\/www.innovationm.com\/blog\/aws-ec2-how-to-launch-an-instance-and-host-a-website\/#primaryimage"},"thumbnailUrl":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/ec2_1-1.png","datePublished":"2019-05-13T12:24:54+00:00","dateModified":"2023-01-20T13:25:30+00:00","author":{"@id":"https:\/\/www.innovationm.com\/blog\/#\/schema\/person\/a831bf4602d69d1fa452e3de0c8862ed"},"breadcrumb":{"@id":"https:\/\/www.innovationm.com\/blog\/aws-ec2-how-to-launch-an-instance-and-host-a-website\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.innovationm.com\/blog\/aws-ec2-how-to-launch-an-instance-and-host-a-website\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.innovationm.com\/blog\/aws-ec2-how-to-launch-an-instance-and-host-a-website\/#primaryimage","url":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/ec2_1-1.png","contentUrl":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2019\/05\/ec2_1-1.png","width":1145,"height":636},{"@type":"BreadcrumbList","@id":"https:\/\/www.innovationm.com\/blog\/aws-ec2-how-to-launch-an-instance-and-host-a-website\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.innovationm.com\/blog\/"},{"@type":"ListItem","position":2,"name":"AWS EC2 How to Launch an Instance and Host a Website"}]},{"@type":"WebSite","@id":"https:\/\/www.innovationm.com\/blog\/#website","url":"https:\/\/www.innovationm.com\/blog\/","name":"InnovationM - Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.innovationm.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.innovationm.com\/blog\/#\/schema\/person\/a831bf4602d69d1fa452e3de0c8862ed","name":"InnovationM Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g","caption":"InnovationM Admin"},"sameAs":["http:\/\/www.innovationm.com\/"],"url":"https:\/\/www.innovationm.com\/blog\/author\/innovationmadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/posts\/5281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/comments?post=5281"}],"version-history":[{"count":0,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/posts\/5281\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/media\/5327"}],"wp:attachment":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/media?parent=5281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/categories?post=5281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/tags?post=5281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}