{"componentChunkName":"component---src-templates-tag-js","path":"/tags/dev-ops/","result":{"data":{"site":{"siteMetadata":{"title":"LoginRadius Blog"}},"allMarkdownRemark":{"totalCount":1,"edges":[{"node":{"fields":{"slug":"/engineering/ec2-instance-aws/"},"html":"<p>AWS EC2 is a virtual computing environment (known as instances) to develop and deploy applications. To create an EC2 instance in AWS, we need an active Amazon Web Services account. </p>\n<h2 id=\"ec2-dashboard\" style=\"position:relative;\"><a href=\"#ec2-dashboard\" aria-label=\"ec2 dashboard permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>EC2 Dashboard</h2>\n<p>First, let's login into our AWS account. Once login, we will land on the Management Console page, we can see all the AWS services. </p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 768px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 48.3076923076923%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAIAAAA7N+mxAAAACXBIWXMAAA7DAAAOwwHHb6hkAAABpElEQVQoz3VR207bQBD1J/cBKtFCpYiGB4TEN/DCA1KVRtDGNGmA9ival1YUx6zjvcx67xenE4xQXzo7to6O5syZ3SnOz96fno5e7Y1fvzva3R/vYB6MEeweHP2bO0/Mm9Hx28OT/cMT/O+NjgvnPeMCABhnAkTXSQwueN/3m/9Ej2ebmwJ1j4S0lEnUdV2n1ACU1i+JJCHNQ1Wt6poyhgyqOECBaL1eY32MIaW0NRw8++dAgHxV1b9+3z9UKwBhrR08tmLQTtrYuaicNyG6lG1MNiWfe5+fcAhCAJOKQSdBGvMiNrZu7knz0wZqU8aZGFJ5o2OumSAcVEzYkVLWUhpjxCm898PVCuucU0Q0PzaJ47BGKcF58B4xAhAQQ8g5k6b9U62UUtaYEMKzs9ZGG7eqW5DaeYcO9SMBiU8Q25YCSLw2VotOU7HdhFIanbFAgCxSTtjYGD3sBjsxxoZNoI/WelgPQs4FioUQ2AtVIYZiNr+ZXl1//HRdLu6+LL9NLssL/BZ35eL2w/Tz+cUEC+bL79NyOZkty/kt8lh2VX69nC3+AvRfFPiZA07/AAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"AWS Management Console\"\n        title=\"AWS Management Console\"\n        src=\"/static/f01a35052034bea9b8a8545fd7a94d66/e5715/1_console.png\"\n        srcset=\"/static/f01a35052034bea9b8a8545fd7a94d66/a6d36/1_console.png 650w,\n/static/f01a35052034bea9b8a8545fd7a94d66/e5715/1_console.png 768w,\n/static/f01a35052034bea9b8a8545fd7a94d66/28e7f/1_console.png 1848w\"\n        sizes=\"(max-width: 768px) 100vw, 768px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<p>There is a drop-down on the top left corner, which is one more option to search and browse all the services provided by AWS. You can find <code>EC2</code> under the <code>Compute</code> category.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 768px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 45.38461538461539%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAJCAIAAAC9o5sfAAAACXBIWXMAAA7DAAAOwwHHb6hkAAABc0lEQVQoz2VR2W6DMBDkR8gFOYAEmzOYwzaEHCSBNE0iVarSvvSh/f8f6ASkSm2llTVmPTsziyLKvD6wKGMa4ToVEzefeoVGxaOIwBe9w22hZYZrIyiNYAWghP42LW5WtMN9uEgttnXkceiIgSNGruyRDDVorwB9wnGqdqrameYIhS636eZis82YisGcR7K43EoaxUOb+6KeR+sRyRZsw9bP5nI9dqWbHaDcM1nZvCowM3EkXmgYRvjMz31RzXwJt4FsfFmjO/NXUXm2lhuEYuU5zE89Kz5c3xUQNJK156PGjvREs4h3ADTZL9gWWcywDPIGuUawIxuXH1SDnV4+lB8aamRnsESTSm+xx492vJu4siMDtBMrkuxUk13fvn6RH7bbfXbY5UcoYxA0l6snmJ96eVicsIu+FV/v/8j4GZ6soQCMR4ht+CvQwEFLp9wTRzgazJO/yp1tklQAEMRiAllDFuZpukd4LAwTnbRSjehy//wG2kh0BZ+OKHwAAAAASUVORK5CYII='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"AWS Services\"\n        title=\"AWS Services\"\n        src=\"/static/ceecda6785c4a989fae06b6ba1327fa1/e5715/2_services.png\"\n        srcset=\"/static/ceecda6785c4a989fae06b6ba1327fa1/a6d36/2_services.png 650w,\n/static/ceecda6785c4a989fae06b6ba1327fa1/e5715/2_services.png 768w,\n/static/ceecda6785c4a989fae06b6ba1327fa1/260cd/2_services.png 1845w\"\n        sizes=\"(max-width: 768px) 100vw, 768px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<p>Once we click on <code>EC2</code> you will be redirected to the <strong>EC2 Dashboard</strong>. It shows the information related to all the EC2 resources for a specific Region in our account.</p>\n<blockquote>\n<p>Note: If we change the region from the top right corner of the dashboard, it will show the selected region's information. In the below snapshot, we have selected <code>Mumbai</code> region. </p>\n</blockquote>\n<p>There is a button <code>Launch Instance</code> to create a new instance in the selected region on the dashboard's bottom section. </p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 768px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 44.92307692307693%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAJCAIAAAC9o5sfAAAACXBIWXMAAA7DAAAOwwHHb6hkAAABd0lEQVQoz41RTWsUQRCdny0SXJNF1w0hcQ8iBO/+Fg+C4MVcYj4Yd2Z2p7+qurp6+mOsCaxnH4/qaqiq97q6Od/u1tvdanPz+vzy1Wpzsd0t/HDiKV+9vz5bX73d3JxdXH3+tL69vXzz7mMzz2Weaykl5zT/B+oLBeR94z3VuSLicFQjBB+YYxQKFNBegdynBWlKSRvXDnrKoje3bdsAgKiGEEZtLaVS6z8RCHFEPolVsYc+OIq5LDVd1zXGGCLiEI7GjhiBGHnyMVFMhqKU0ksuDFPGwAqjRhaNru8bQJTmNEUtJh0/H9zjEVvje0sD8AFYYu+CUFFygP0weL88zjontpE8ppSMtcN4MGCZRYBDjBZg3/fKGBmPngJHbfT9/e+u64mCJ2qsA+lMuaJ+0E8/YH+X/B/2KuciCjLROSdBquVHxOZ+GI+jkk0tzXJMMeY6Q/fTffsC37+y/sVBTanIFtH7nDMEC+RSSdbah8fncVQy0QH8BXD36xwqt2hzAAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"EC2 Dashborad\"\n        title=\"EC2 Dashborad\"\n        src=\"/static/500d92c7e3393280e192801a819409f0/e5715/3_dashboard.png\"\n        srcset=\"/static/500d92c7e3393280e192801a819409f0/a6d36/3_dashboard.png 650w,\n/static/500d92c7e3393280e192801a819409f0/e5715/3_dashboard.png 768w,\n/static/500d92c7e3393280e192801a819409f0/69d6b/3_dashboard.png 1912w\"\n        sizes=\"(max-width: 768px) 100vw, 768px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<h2 id=\"how-to-launch-an-ec2-instance\" style=\"position:relative;\"><a href=\"#how-to-launch-an-ec2-instance\" aria-label=\"how to launch an ec2 instance permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>How to launch an EC2 Instance</h2>\n<p>After clicking the Launch button, we need to select the Amazon Machine Image (AMI) it includes the operating system and applications required to launch an instance. Here we will select the Ubuntu Server 20.04 LTS as shown in the below snapshot.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 768px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 41.69230769230769%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAICAIAAAB2/0i6AAAACXBIWXMAAA7DAAAOwwHHb6hkAAABJUlEQVQY02WRS2+EIBSF+f+/qGnSfXd9JF10Hmk741hFQBB5y9gDTmbTE3MQc8/lu0gEo5NS0zRpraeyYqdyztfrdVkW+PpP+O7CkpZM2DAIIbz3VvN51ohLKZFHrxn76tsL2lvn1jX/0PnhnSptyDAMTdOM43g8HrquQ5JzpquMsRCSxpjNIe+snP1Xp2JMhLGhbVuUSsaQRBdVXYzjVg6oEGPwVSEAm07x+SBdSASEJaDU7rDv+77MLFUxKdHRWheqYhXSa05nZh5ff12IBEWinva5310uF844Di0gt3CRqQMUeD17a/vRvn0LD+w6JMd9a0YL78bMOfx+YYjdbsFaYLe0eXr5cIaSjQrjnE4npSR+Q4GsT0oJ283vQtha3g/nHNUf8ObG21Q+K14AAAAASUVORK5CYII='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"EC2 AMIs\"\n        title=\"EC2 AMIs\"\n        src=\"/static/d4667e1ad4b579dbee46839cbcfea13e/e5715/4_ami.png\"\n        srcset=\"/static/d4667e1ad4b579dbee46839cbcfea13e/a6d36/4_ami.png 650w,\n/static/d4667e1ad4b579dbee46839cbcfea13e/e5715/4_ami.png 768w,\n/static/d4667e1ad4b579dbee46839cbcfea13e/ec09f/4_ami.png 1916w\"\n        sizes=\"(max-width: 768px) 100vw, 768px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<p>The next step is to choose the type of instance we need. AWS provides many types of instances based on different use cases with various CPU combinations, memory, storage, and networking capacity. We will here select the <code>t2.micro instance</code>, which is a free tier eligible instance.</p>\n<blockquote>\n<p>while writing this tutorial, Amazon provides 750 hours per month of free usage on the t2.micro instance. It makes it very affordable to run small/sample applications for an initial period.</p>\n</blockquote>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 768px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 41.23076923076923%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAICAIAAAB2/0i6AAAACXBIWXMAAA7DAAAOwwHHb6hkAAABLklEQVQY0zVQCUpFMQx897+Q5xBRUARF+b69e9Km23PqMpRhmCZpOtO27/u2LvNtWRalDTEHYuIE9oGGJo4xikj5Qc44A9CTUmrb1nXdlNLz/HWc52HodCySUkwgAM0orf8YujWMm6zWaFbn4azVGKBBivAkEZooBMYezN47mFgjBB8jths8KUvGkbbBePpcZu0CtHa0nQb+bdnWXcHZT6OMP7V7/7hB49a6MFmuJJ1StzE/z282CudrONIhTBDHBYLLBQ6pHSZYKkEapzK1WnsDBkdicG9/ztW7JEY+EL8F+K1zFnHg4znLlEcS7SePhlWGHqE0yaW3jsA5pj5w9WvAe4+4UJBznUrrOLmCryhwem4XtJQGTlKk1FQvzHiZ3d2ju399c8fDsTy58+UbumnL7own8HQAAAAASUVORK5CYII='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"EC2 Types\"\n        title=\"EC2 Types\"\n        src=\"/static/bb9d3b1e6a6cb61ea9b66e3471851bba/e5715/5_type.png\"\n        srcset=\"/static/bb9d3b1e6a6cb61ea9b66e3471851bba/a6d36/5_type.png 650w,\n/static/bb9d3b1e6a6cb61ea9b66e3471851bba/e5715/5_type.png 768w,\n/static/bb9d3b1e6a6cb61ea9b66e3471851bba/69d6b/5_type.png 1912w\"\n        sizes=\"(max-width: 768px) 100vw, 768px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<p>On the Instance Configuration Details Page, we have options to run more than one instance at once, and there are other configurations regarding roles and access management. We will skip all this and click on the <code>Next: Add Storage</code> button.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 768px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 42.46153846153847%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAICAIAAAB2/0i6AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAA60lEQVQY031QwVLFIAzs//+VV2/OePLkxemjtLUFklAI1KWvjn0z6g4TFshmEzo7Tsea7WDG4SYixJFFWGJgIYkicftGjCfPOatql3Nal2UwxjkPZQihRd48RWZRPF8A2Z3UWpHW7fteSvlcFsjWdbXWEhEemMhzkk33P4C0JkZn0zThMM9z3/fgzrnWwqYxaf0NUJ3OyDPGMMOsASQf2P9FmxkbZvD+HBjKeIAoLF4cpVJ+DMG1IOKqqOYmhsloLfQBKwTUwk3706Qpl2urD86lNvH9S1FPH3FNLbU1eJv901t4ff+g8Zmmly/RfNHCa2rGVwAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Configure Instance Details\"\n        title=\"Configure Instance Details\"\n        src=\"/static/7c37feb4e3c06124910ba34348e2acd2/e5715/6_configuratio.png\"\n        srcset=\"/static/7c37feb4e3c06124910ba34348e2acd2/a6d36/6_configuratio.png 650w,\n/static/7c37feb4e3c06124910ba34348e2acd2/e5715/6_configuratio.png 768w,\n/static/7c37feb4e3c06124910ba34348e2acd2/40a97/6_configuratio.png 1911w\"\n        sizes=\"(max-width: 768px) 100vw, 768px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<p>We can increase or decrease the size of instance storage while creating it; the free tier is eligible upto 30GB; if you need more storage, it will be billed according to <a href=\"https://aws.amazon.com/ebs/pricing/\">Elastic Block Store (EBS) Pricing</a></p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 768px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 42.15384615384615%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAICAIAAAB2/0i6AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAA9klEQVQY041Qy04EIRDk/+9e/QUPevEXTNSDGrPRZGNWGJgHzRsGWMZmjSf3sJVKpRK6upsmQoiBsXEczR+sNUZN1ihrnbMowTrfWtv+gWAM89M0zfMsBF8WkOOe093MP4aBSQlSSqxhlKJSSgGAcyxbsC0BkDgpRUTw3uHgYNjqebJUK6m1xqc+35qYEmiXUurbuG7IsJjvEVQsOtZf1bGoENCrtJ18MeuxnNl6IxDKZKJ0GXxG7UTjS2eo3bsVQs21p/HnxxP7CVoj26U4d7CLw1ttLecsTGU6p6DLqsjXgV7Iz/3h5W13ff96dfv0+HD3/nzzAxrix86VvMxaAAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Storage\"\n        title=\"Storage\"\n        src=\"/static/6804e1b44b93b5299b367eeef1bb5e96/e5715/7_storage.png\"\n        srcset=\"/static/6804e1b44b93b5299b367eeef1bb5e96/a6d36/7_storage.png 650w,\n/static/6804e1b44b93b5299b367eeef1bb5e96/e5715/7_storage.png 768w,\n/static/6804e1b44b93b5299b367eeef1bb5e96/29114/7_storage.png 1920w\"\n        sizes=\"(max-width: 768px) 100vw, 768px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<p>On the next screen, we can add tags to our instance and storage; these tags are key-value pair which are very useful to add properties to our resources, especially when we have multiple instances.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 768px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 42.30769230769231%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAICAIAAAB2/0i6AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAA2UlEQVQY05WQy27DIBBF/f8/1T/I2l1EimI1xjbGMMPDvDumcpPu0qMrpAHNHKAbp/nxYPOyAmoJiMagNhqlNgbQWLf7EEIkUmwrVf5Mx5eZjePEGOd8FVIqtRFyAwDnXEoxN4L3MRyUUupJJxUeASQPeckthKBB8pijoCEVcEET1So2RHw2O7NEr1KARKsHktAxNZPWWmsaqO0eS8jVp0LbL+bpAryP+rbjNbuhnOQXqKjHbX/ypKtvQ3251N83l9Zc/uYfvGUmIf32F8ePHj4HtqsbbIOD+zcX59IHil+V9AAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Tags\"\n        title=\"Tags\"\n        src=\"/static/29391a24ea76e156f955e0ee5033b77d/e5715/8_tags.png\"\n        srcset=\"/static/29391a24ea76e156f955e0ee5033b77d/a6d36/8_tags.png 650w,\n/static/29391a24ea76e156f955e0ee5033b77d/e5715/8_tags.png 768w,\n/static/29391a24ea76e156f955e0ee5033b77d/7ebf9/8_tags.png 1919w\"\n        sizes=\"(max-width: 768px) 100vw, 768px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<p>We can define the firewall rules in a security group attached to our instance. With the help of these rules, we can control the traffic to our instance.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 768px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 42.15384615384615%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAICAIAAAB2/0i6AAAACXBIWXMAAA7DAAAOwwHHb6hkAAABCElEQVQY041PSU7EMBD0/7/AEzihufEIDiPxAiaO7bEdJ3a8L1SCQBoJJEqtVnV39UaUlJxxOk2UUs6FVsoYYzcAzq4HzAqyuZOv1toYYwghpUTGGL1353bvPVScM/SVUuqJ1tr4GwRS55zWmjE2zzPnXCkFghAlcwKCfT+mIwPlT0i0VtZutRTvdxTyCTR87YeIM4aJOBgCvEBPOGeVkkQvZvcBN+BIPNL7cU+MKZd6JhvW4HlkwFPK4MtiUN6sI3aZomUt25q3B0u/hL26UffRwuh+9EBGWZKjOcgSVQr37CX4g31natK9bSUt3s2zvAn1QcRdCakP/w/jQt6ouL6/Pb1cnl8vn/OAxpLbalmRAAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Security Group\"\n        title=\"Security Group\"\n        src=\"/static/a3f07a56cc2d0d60915bfcaf44b0f09d/e5715/9_security.png\"\n        srcset=\"/static/a3f07a56cc2d0d60915bfcaf44b0f09d/a6d36/9_security.png 650w,\n/static/a3f07a56cc2d0d60915bfcaf44b0f09d/e5715/9_security.png 768w,\n/static/a3f07a56cc2d0d60915bfcaf44b0f09d/29114/9_security.png 1920w\"\n        sizes=\"(max-width: 768px) 100vw, 768px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<p>Once we are done with firewall rules, we can review the complete detail of our new instance on a single page, and here we can click <code>Launch</code> button to launch the instance.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 768px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 42.15384615384615%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAICAIAAAB2/0i6AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAA80lEQVQY05VQy2oDMQz0//9Uoeec2xBoIJAlidf2ev1+b2dtAr00kDkMsiWNRiJaLovgWmullLU2dnjvc87b/yil+ZjJ6fvrdDyGEFUH+q1z0Aoh5I5SSq31b2drO2MAeVD6cz5LKTnnS4fs4JyB8WSMCSGgK/gOpVYoxtwWqYg1BmltDAJMRZExRnSMJ/rBzrl5nhnj3ruUS66bXBXBL3IwNkw+jbUXC9faUmmr0gTCt/sdS0J4mqbhmVIKxuSxCAIUwDMYvsYJwGScdx+akncO50GIY4xPtKG6JxNOCI4RVJy3D8HI9iawT0zlert8HD5/AVVAzfdyfqPJAAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Review\"\n        title=\"Review\"\n        src=\"/static/c674c07a9bd6d82b5669c9677a337162/e5715/10_review.png\"\n        srcset=\"/static/c674c07a9bd6d82b5669c9677a337162/a6d36/10_review.png 650w,\n/static/c674c07a9bd6d82b5669c9677a337162/e5715/10_review.png 768w,\n/static/c674c07a9bd6d82b5669c9677a337162/29114/10_review.png 1920w\"\n        sizes=\"(max-width: 768px) 100vw, 768px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<p>When we click <code>Launch</code>, it will open a pop-up that will require you to select a pre-existing public-private key-pair or create one to connect to our instance securely. Once you select/download the key, you will be able to launch the instance.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 768px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 55.53846153846153%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAALCAIAAADwazoUAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAB/0lEQVQoz3WQ62/SYBTG+8/7zSUqG3ItpS13xibZdMRsc2o0USOZ9EJLQQsrL7RA7xcupR6QqInx5MlJng+/c85zsFS+lKEq+XKDrp3v9WKv87+0s1T1DDpZaeSK9d/C4hnqaTJXbjQ5nmc5jmHZDsuxYPgudI7vdhhW6g8UNBmP0cdPX9JkmSidHuBErhDP0peta9M0VFXVNA0hNEFI25U6VhQ0RjNtBsaxbV7opcgyWTn7xWMwKZ6lLlrXhmFMJkgDXlVhkLkrYz6f67qxWOgAh+FGlAbPkrl0vgQUXqhhYB4fp06bL03L0ua6qunaTDct17Ac1/V8zw983/M813WjKGJ54dFRLJbMxVIE8Bi8Kk1VWjdvLcvq9X/Io/FsYemmswDacb1d+cEygDFRtBWkAWQE5JAZXp0gigD7noseZNsyVoG39D3ogecE/tI1RmjwbtT/7GjtntRN5St/HnaSIZ8k8Iur16YfitNA97dTaz0x14qxUu2V6mynuv5dZvg+b5hDqS+eZGlICyt3meFbkBlgw9t8le320Lof2RxyGcWVVB80mK8UM5QXgbOJeEE8Ok4nieJznAYew+lqcn929J9ah6E85e+H0sNMFHt8ijycjcPZRLGepav15iuGEzqcwPyj9jfu9v3V5W3rzYfWzd1dhqoSpTpeqCfytZ8pgQ/8DjQQogAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Security Key\"\n        title=\"Security Key\"\n        src=\"/static/e4ceb420d42f9a9f72ab8cfeef5fa8a0/e5715/11_key.png\"\n        srcset=\"/static/e4ceb420d42f9a9f72ab8cfeef5fa8a0/a6d36/11_key.png 650w,\n/static/e4ceb420d42f9a9f72ab8cfeef5fa8a0/e5715/11_key.png 768w,\n/static/e4ceb420d42f9a9f72ab8cfeef5fa8a0/53639/11_key.png 1358w\"\n        sizes=\"(max-width: 768px) 100vw, 768px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<p>It will take approximately 5-10 min to launch the instance. Once launched, You can see the list of your running instances by clicking on the <code>Instances</code> button on the left menu.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 768px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 46.92307692307692%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAJCAIAAAC9o5sfAAAACXBIWXMAAA7DAAAOwwHHb6hkAAABMUlEQVQoz42QTU/DMAyG85/5CUhcOMONCwhQ6ZZ9sFFusG60oyABEncOY13XrzVN2rGkSXGraRoTh1mPoteOHdtBV7h/g3t6u392fn2htRodA3fvmx2j2a1F19Bwr9G+0/DtpYb1Vk9v9fHJYfP4oHF6hJQqwaQsOOflniZouQxLThFjRBY/yzx3Z5UFQfg1mXlBNPWmk+m3685CsCSKFlG8SOI4hgTC8phmfhSjZfAhyOcq9+d+SAhZJEmyPteCpGlK6QZKGa1EFURwx1gGMwdhSBlLa+gW25U7oCzPIEcWAvqAD2/tD4KhoJqvVtB57sMisFqyAZxtd8PcD1zPQ0IIVf84FxyQSqpS/UFJ+R8QRyPbGb+8Oa/vD6Y1GI0fh/YO5tPz0HaGVk0tTKuKwPkL2Prm3a8JiKIAAAAASUVORK5CYII='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Running\"\n        title=\"Running\"\n        src=\"/static/ee18ffecc1684a9d17dc2181c295db90/e5715/12_runnning_instace.png\"\n        srcset=\"/static/ee18ffecc1684a9d17dc2181c295db90/a6d36/12_runnning_instace.png 650w,\n/static/ee18ffecc1684a9d17dc2181c295db90/e5715/12_runnning_instace.png 768w,\n/static/ee18ffecc1684a9d17dc2181c295db90/7ebf9/12_runnning_instace.png 1919w\"\n        sizes=\"(max-width: 768px) 100vw, 768px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<h2 id=\"conclusion\" style=\"position:relative;\"><a href=\"#conclusion\" aria-label=\"conclusion permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Conclusion</h2>\n<p>As you can see, it is effortless to create a free tier AWS instance to deploy your application. In the upcoming article, we will show you how to deploy an application on the EC2 instance and the best practices.</p>\n<style class=\"grvsc-styles\">\n  .grvsc-container {\n    overflow: auto;\n    -webkit-overflow-scrolling: touch;\n    padding-top: 1rem;\n    padding-top: var(--grvsc-padding-top, var(--grvsc-padding-v, 1rem));\n    padding-bottom: 1rem;\n    padding-bottom: var(--grvsc-padding-bottom, var(--grvsc-padding-v, 1rem));\n    border-radius: 8px;\n    border-radius: var(--grvsc-border-radius, 8px);\n    font-feature-settings: normal;\n  }\n  \n  .grvsc-code {\n    display: inline-block;\n    min-width: 100%;\n  }\n  \n  .grvsc-line {\n    display: inline-block;\n    box-sizing: border-box;\n    width: 100%;\n    padding-left: 1.5rem;\n    padding-left: var(--grvsc-padding-left, var(--grvsc-padding-h, 1.5rem));\n    padding-right: 1.5rem;\n    padding-right: var(--grvsc-padding-right, var(--grvsc-padding-h, 1.5rem));\n  }\n  \n  .grvsc-line-highlighted {\n    background-color: var(--grvsc-line-highlighted-background-color, transparent);\n    box-shadow: inset var(--grvsc-line-highlighted-border-width, 4px) 0 0 0 var(--grvsc-line-highlighted-border-color, transparent);\n  }\n  \n</style>","frontmatter":{"date":"November 18, 2020","updated_date":null,"title":"How to create an EC2 Instance in AWS","tags":["AWS","DevOps","EC2"],"coverImage":{"childImageSharp":{"fluid":{"aspectRatio":1.5037593984962405,"src":"/static/3b0ae847df7e8ad3b57b8a90fbdbe870/ee604/ec2cover.png","srcSet":"/static/3b0ae847df7e8ad3b57b8a90fbdbe870/69585/ec2cover.png 200w,\n/static/3b0ae847df7e8ad3b57b8a90fbdbe870/497c6/ec2cover.png 400w,\n/static/3b0ae847df7e8ad3b57b8a90fbdbe870/ee604/ec2cover.png 800w,\n/static/3b0ae847df7e8ad3b57b8a90fbdbe870/f3583/ec2cover.png 1200w","sizes":"(max-width: 800px) 100vw, 800px"}}},"author":{"id":"Puneet Singh","github":"puneetsingh24","avatar":null}}}}]}},"pageContext":{"tag":"DevOps"}},"staticQueryHashes":["1171199041","1384082988","2100481360","23180105","528864852"]}