{"id":82826,"date":"2022-06-17T06:00:56","date_gmt":"2022-06-17T11:30:56","guid":{"rendered":"https:\/\/www.whizlabs.com\/blog\/?p=82826"},"modified":"2024-04-30T16:05:59","modified_gmt":"2024-04-30T10:35:59","slug":"aws-training","status":"publish","type":"post","link":"https:\/\/www.whizlabs.com\/blog\/aws-training\/","title":{"rendered":"Amazon\u00a0Web Services (AWS) &#8211; An Ultimate Guide for Beginners"},"content":{"rendered":"<p>In this <a href=\"https:\/\/www.whizlabs.com\/aws-certifications\/\">AWS training<\/a> tutorial, we are going to explore AWS (Amazon Web Services) in detail with a real-time demo of AWS Console. This beginner&#8217;s guide fastens your AWS exam preparation and improves your confidence to take up the real exam. Let us start learning AWS!<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #ea7e02;color:#ea7e02\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #ea7e02;color:#ea7e02\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/#Getting_started_with_Amazon_EC2\" >Getting started with Amazon EC2<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/#Why_Amazon_EC2\" >Why Amazon EC2?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/#Elastic_Compute_Cloud_EC2_Pricing_Options\" >Elastic Compute Cloud (EC2) Pricing Options<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/#What_is_Amazon_Machine_Image_AMI\" >What is Amazon Machine Image (AMI)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/#How_to_Create_an_EC2_Instance\" >How to Create an EC2 Instance?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/#Connecting_to_EC2_instance\" >Connecting to EC2 instance<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/#How_to_Create_an_EBS_Volume_and_Attach_to_EC2\" >How to Create an EBS Volume and Attach to EC2?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/#Migrating_EC2_instance_from_one_region_to_another\" >Migrating EC2 instance from one region to another<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/#Setting_up_Performance_Monitoring_for_EC2_Instance\" >Setting up Performance Monitoring for EC2 Instance<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/#Compare_Amazon_RDS_and_Amazon_EC2_for_MySQL\" >Compare Amazon RDS and Amazon EC2 for MySQL<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/#What_is_EC2\" >What is EC2?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/#What_is_Amazon_RDS\" >What is Amazon RDS?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/#Difference_between_RDS_and_EC2\" >Difference between RDS and EC2<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/#Choosing_between_RDS_and_EC2\" >Choosing between RDS and EC2<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/#How_to_Deploy_an_Application_to_Elastic_Beanstalk\" >How to Deploy an Application to Elastic Beanstalk?<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/#How_to_create_EC2_EBS_automated_backup\" >How to create EC2 (EBS) automated backup?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/#How_to_resize_EBS_Volumes_and_extend_the_filesystem\" >How to resize EBS Volumes and extend the filesystem?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/#Resize_EBS_Volume_on_AWS_console\" >Resize EBS Volume on AWS console<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/#A_Beginners_Guide_to_Amazon_RDS\" >A Beginners Guide to Amazon RDS<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/#What_is_Amazon_S3\" >What is Amazon S3?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/#Summary\" >Summary:<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Getting_started_with_Amazon_EC2\"><\/span>Getting started with Amazon EC2<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">When you launch your application, predicting computing power required to run the application efficiently is one of the most difficult tasks. We will either end up in setting up more computing power than required and will be paying more or we will end up in over utilization that will lead to application crashes. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">That is where the Cloud providers solve this issue by providing compute powers in a pay-as-you-go model with elasticity. In this article, we will see some of the basics of <a href=\"https:\/\/www.whizlabs.com\/blog\/amazon-elastic-compute-cloud-guide\/\">AWS EC2<\/a>.<\/span><\/p>\n<h4>What is Elastic Compute Cloud (EC2)?<\/h4>\n<p><span style=\"font-weight: 400;\">The Elastic Compute Cloud (EC2) is a web service offered by AWS (also known as instances) that provides a resizable compute power in the cloud. EC2 can easily scale up or scale down the number of instances and provides elasticity. An instance can be described as a small part of the large computer with its own operating system, network configurations. There can be multiple virtual machines (instances) on a single physical machine.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Why_Amazon_EC2\"><\/span>Why Amazon EC2?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Amazon EC2 is more flexible than traditional machines and offers a lot of other possibilities as well. We can start with small instances and we can increase the size when the traffic is increased and that can be done within minutes. It\u2019s easier to increase the storage capacity as well. You don\u2019t have to worry about security patch updates, etc since these are taken care of by AWS. The cost is another important factor to consider using EC2. We will be paying only for what we have used.<\/span><\/p>\n<p><b>Types of EC2 Instances<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The nature of our application or task will decide which type of instances we need. AWS offers different types of instances optimized for different use cases or workloads.\u00a0<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">General Purpose Instance<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Compute Optimized Instance<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Memory Optimized Instance<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Storage Optimized Instance<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Accelerated Computing<\/span><\/li>\n<\/ol>\n<p><b>General Purpose Instances<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The general purpose instances are divided into two varieties, T and M. This type of instance is suitable for applications that require to balance performance and cost. T and M instances are based on the virtualization types PV and HVM. T instances are more suitable for testing environments and M instances are suitable for production workloads.\u00a0<\/span><\/p>\n<p><b>Compute Optimized Instances<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The compute optimized instances (C type) are recommended for the workloads which require a lot of processing power from the CPU. More suitable for data analysis and data processing applications.\u00a0<\/span><\/p>\n<p><b>Memory Optimized Instances<\/b><\/p>\n<p><span style=\"font-weight: 400;\">If the application is heavy and needs a lot of RAM but doesn\u2019t require a lot of CPU power, then memory optimized instances are the best choice.\u00a0<\/span><\/p>\n<p><b>Storage Optimized Instance<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Storage optimized instances are provisioned with more storage capacity. H, I and D instances belong to this group. When the application is huge and has a lot of data to be stored on the local disk, this type of instance would be a better choice.<\/span><\/p>\n<p><b>Accelerated Computing<\/b><\/p>\n<p><span style=\"font-weight: 400;\">P and G instance types belong to this group. These types of instances are more suitable for the applications which require heavy graphics rendering. These instances have their own graphics card and GPU based on the instance size.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Elastic_Compute_Cloud_EC2_Pricing_Options\"><\/span>Elastic Compute Cloud (EC2) Pricing Options<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">AWS offers different purchase options for EC2:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">On Demand Instances<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Spot Instances<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Reserved Instances<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Dedicated Hosts<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Dedicated Instances<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Capacity Reservations\u00a0<\/span><\/li>\n<\/ul>\n<p><b>On-Demand instances<\/b><span style=\"font-weight: 400;\"> are used when you don\u2019t want any upfront payment and long term commitment. Follows pay-as-you-go pricing model and recommended for unpredictable and short term workloads.\u00a0<\/span><\/p>\n<p><b>Spot Instances<\/b><span style=\"font-weight: 400;\"> can give discounts of up to 90% compared to on-demand instances. This pricing option enables you to bid on unused EC2 instances. Price fluctuates based on the availability of instances. Recommended for batch processing and not recommended for critical jobs.\u00a0<\/span><\/p>\n<p><b>Reserved instances<\/b><span style=\"font-weight: 400;\"> save a significant amount of cost compared to on-demand instances. In this type you reserve the instance for a specific period of time.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">There are three payment options available for reserved instances:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">All Upfront\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Partial Upfront<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">No Upfront<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">There are two term lengths available to select from:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">One-Year<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Three-Year<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">There are two different classes available in the reserved instance type.\u00a0<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Standard Reserved Instances<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Convertible Reserved instances<\/span><\/li>\n<\/ol>\n<p><b>Dedicated Hosts <\/b><span style=\"font-weight: 400;\">is a physical server with EC2 instance capacity that is dedicated for your use. This is the more expensive instance type and suitable for companies which have a strong compliance need.\u00a0<\/span><\/p>\n<p><b>Dedicated Instances<\/b><span style=\"font-weight: 400;\"> are running on the dedicated hardware. May share the hardware with other instances running on the same account which are not dedicated instances.<\/span><\/p>\n<p>Learn the <a href=\"https:\/\/www.whizlabs.com\/blog\/aws-cost-optimization-best-practices\/\">AWS pricing<\/a> model before progressing your services for better cost optimization!<\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_is_Amazon_Machine_Image_AMI\"><\/span>What is Amazon Machine Image (AMI)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">The Amazon Machine Image (AMI) contains the information required to launch an EC2 instance. Multiple instances can be launched using a single AMI.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">An AMI includes:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">One or more EBS snapshots. A template for the root volume in case of instance-store backed AMI.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Launch permissions<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">A block device mapping<\/span><\/li>\n<\/ul>\n<p><b>Creating Own AMI<\/b><\/p>\n<p><span style=\"font-weight: 400;\">You can customize the instance and save the configurations as custom AMI. New instances can be launched using custom AMI with the configurations you have done.\u00a0<\/span><\/p>\n<p><b>What is Elastic Block Store (EBS)<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Elastic Block Store (EBS) is a persistent block storage service offered by AWS and that acts as a network drive that can be attached to an instance when it\u2019s running. EBS scales up and down easily. EBS volumes are restricted to the availability zone (AZ).\u00a0<\/span><\/p>\n<p><b>What is Persistent storage?<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Persistent storage(also called as non volatile) is a data storage device that will retain the data even after the system is shut off.\u00a0<\/span><\/p>\n<p><b>Types of EBS Volumes<\/b><\/p>\n<p><span style=\"font-weight: 400;\">EBS offers four types of volume types.\u00a0<\/span><\/p>\n<p><b>Solid State Drives (SSD)<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Solid State Drive (SSD) is faster than HDD in general. Performance of an SSD is measured in IOPS. That means how input and output operations per second the server can handle.\u00a0<\/span><\/p>\n<p><b>General Purpose SSD (gp2)<\/b><span style=\"font-weight: 400;\"> is the default EBS volume and provides maximum performance by balancing the performance and price.\u00a0<\/span><\/p>\n<p><b>Provisioned IOPS SSD <\/b><span style=\"font-weight: 400;\">is recommended for mission critical applications and it provides\u00a0 high performance for I\/O intensive applications. Size of this volume ranges from 4GiB to 16TiB. IOPS ranges from 100 IOPS to 32000 IOPS.\u00a0<\/span><\/p>\n<p><b>Hard Disk Drives (HDD)<\/b><\/p>\n<p><span style=\"font-weight: 400;\">There are two types of hard disk drives available and their performance is measured in terms of throughput.<\/span><\/p>\n<p><b>Throughput Optimized HDD(st1) <\/b><span style=\"font-weight: 400;\">is recommended for large, sequential workloads. Provides low cost magnetic storage. This type of volume provides throughput of 500 MB\/s. This type can not be used as EC2 root volume.<\/span><\/p>\n<p><b>Cold HDD(sc1) <\/b><span style=\"font-weight: 400;\">is the cheapest magnetic storage type and uses a burst model. This volume type provides throughput of 250 MB\/s and is recommended for infrequently accessed workloads.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"How_to_Create_an_EC2_Instance\"><\/span>How to Create an EC2 Instance?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">We have learnt about the EC2 basics in our previous tutorial. In this demo, we will dive deep into the EC2 instance in\u00a0 management console and see how to create an EC2 instance. I assume that you have an AWS account already or you can also use Whizlabs Hands On labs environment to get AWS login credentials.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Login to <\/span><a href=\"https:\/\/aws.amazon.com\/console\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">AWS management console<\/span><\/a><span style=\"font-weight: 400;\"> and navigate to the EC2 dashboard by clicking on the Services tab and EC2.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82634 size-full\" title=\"AWS EC2 dashboard\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/EC2_dashboard.png\" alt=\"AWS EC2 dashboard\" width=\"1434\" height=\"715\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/EC2_dashboard.png 1434w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/EC2_dashboard-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/EC2_dashboard-1024x511.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/EC2_dashboard-768x383.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/EC2_dashboard-842x420.png 842w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/EC2_dashboard-640x319.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/EC2_dashboard-681x340.png 681w\" sizes=\"(max-width: 1434px) 100vw, 1434px\" \/><span style=\"font-weight: 400;\">Now, click on the \u201cLaunch Instance\u201d button. Give a name as you wish and select the AMI type. We will create an Ubuntu 20.04 with SSD volume for this type.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82636 size-full\" title=\"AWS select_ami\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_ami.png\" alt=\"AWS select_ami\" width=\"1435\" height=\"714\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_ami.png 1435w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_ami-300x149.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_ami-1024x510.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_ami-768x382.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_ami-844x420.png 844w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_ami-640x318.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_ami-681x339.png 681w\" sizes=\"(max-width: 1435px) 100vw, 1435px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Now, we need to select the instance type. The t2.micro is a free tier eligible instance type so that we will be creating <strong>t2.micro<\/strong> for this tutorial. You can select any instance type as per your needs (please check the pricing before launching the instance).<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82637 size-full\" title=\"AWS select instance type\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_instance_type.png\" alt=\"AWS select instance type\" width=\"1431\" height=\"714\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_instance_type.png 1431w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_instance_type-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_instance_type-1024x511.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_instance_type-768x383.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_instance_type-842x420.png 842w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_instance_type-640x319.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_instance_type-681x340.png 681w\" sizes=\"(max-width: 1431px) 100vw, 1431px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">We need a key pair to connect to the EC2 instance. We can either select the existing key pair or create a new one. For this demo, we will create a new key pair. Click on \u201cCreate new key pair\u201d and give a name then click on create key pair. Save the file in your local.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82638 size-full\" title=\"AWS create key pair\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_key_pair.png\" alt=\"AWS create key pair\" width=\"1436\" height=\"711\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_key_pair.png 1436w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_key_pair-300x149.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_key_pair-1024x507.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_key_pair-768x380.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_key_pair-848x420.png 848w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_key_pair-640x317.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_key_pair-681x337.png 681w\" sizes=\"(max-width: 1436px) 100vw, 1436px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Leave the network settings as it is or enter your settings. I have enabled HTTP traffic to this instance.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82639 size-full\" title=\"AWS Network settings\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/network_settings.png\" alt=\"AWS Network settings\" width=\"1433\" height=\"712\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/network_settings.png 1433w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/network_settings-300x149.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/network_settings-1024x509.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/network_settings-768x382.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/network_settings-845x420.png 845w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/network_settings-640x318.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/network_settings-681x338.png 681w\" sizes=\"(max-width: 1433px) 100vw, 1433px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Next, we need to select storage for the instance. Add the storage you need and select the storage type. I have selected a general purpose SSD (gp2) for this demo.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82640 size-full\" title=\"AWS configure storage\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/configure_storage.png\" alt=\"AWS configure storage\" width=\"1433\" height=\"715\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/configure_storage.png 1433w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/configure_storage-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/configure_storage-1024x511.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/configure_storage-768x383.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/configure_storage-842x420.png 842w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/configure_storage-640x319.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/configure_storage-681x340.png 681w\" sizes=\"(max-width: 1433px) 100vw, 1433px\" \/><br \/>\n<span style=\"font-weight: 400;\">Review the settings and click on launch instance.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82641 size-full\" title=\"AWS launch instance\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance.png\" alt=\"AWS launch instance\" width=\"1436\" height=\"713\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance.png 1436w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance-300x149.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance-1024x508.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance-768x381.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance-846x420.png 846w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance-640x318.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance-681x338.png 681w\" sizes=\"(max-width: 1436px) 100vw, 1436px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Within a few seconds, our instance will be created. Navigate to the EC2 dashboard and you should be able to see the instance in the running state.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82642 size-full\" title=\"AWS instance running\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/instance_running.png\" alt=\"AWS instance running\" width=\"1437\" height=\"713\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/instance_running.png 1437w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/instance_running-300x149.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/instance_running-1024x508.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/instance_running-768x381.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/instance_running-846x420.png 846w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/instance_running-640x318.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/instance_running-681x338.png 681w\" sizes=\"(max-width: 1437px) 100vw, 1437px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">That\u2019s it! We have successfully created an EC2 instance.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Connecting_to_EC2_instance\"><\/span>Connecting to EC2 instance<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Let us now connect the instance which we have created using SSH. We have created a keypair with the name whizlabs-demo.pem. We need to change the file permission for this file. Run the following command to change the permission (replace the file name with your keypair file name).\u00a0<\/span><\/p>\n<p><b>chmod 400 whizlabs-demo.pem<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Run the following command to connect to the instance. Replace the ip address with your public ip address.<\/span><\/p>\n<p><b>ssh -i &#8220;whizlabs-demo.pem&#8221; ubuntu@3.110.121.20<\/b><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82644 size-full\" title=\"AW ssh connect\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ssh_connect.png\" alt=\"AW ssh connect\" width=\"1038\" height=\"625\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ssh_connect.png 1038w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ssh_connect-300x181.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ssh_connect-1024x617.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ssh_connect-768x462.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ssh_connect-698x420.png 698w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ssh_connect-640x385.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ssh_connect-681x410.png 681w\" sizes=\"(max-width: 1038px) 100vw, 1038px\" \/><\/p>\n<p><b>Configuring Elastic IP<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Now, we have a public IP assigned to our instance but that\u2019s not a static IP address. If we restart the instance, this IP will be replaced with another one. Elastic IP resolves this problem. We will see how to assign elastic IP to the instance in the following steps.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Go to the EC2 dashboard and click on the Elastic IP.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82645 size-full\" title=\"AWS eip dashboard\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_dashboard.png\" alt=\"AWS eip dashboard\" width=\"1437\" height=\"687\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_dashboard.png 1437w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_dashboard-300x143.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_dashboard-1024x490.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_dashboard-768x367.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_dashboard-879x420.png 879w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_dashboard-640x306.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_dashboard-681x326.png 681w\" sizes=\"(max-width: 1437px) 100vw, 1437px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Click on \u201cAllocate Elastic IP Address\u201d and leave the settings as it is and click on allocate.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82646 size-full\" title=\"AWS eip allocate\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_allocate.png\" alt=\"AWS eip allocate\" width=\"1437\" height=\"712\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_allocate.png 1437w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_allocate-300x149.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_allocate-1024x507.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_allocate-768x381.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_allocate-848x420.png 848w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_allocate-640x317.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_allocate-681x337.png 681w\" sizes=\"(max-width: 1437px) 100vw, 1437px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">An IP address has been allocated but not associated with any resource. We need to associate it with the instance which we have created. Select the Elastic IP and click on actions then click on associate elastic ip address. <\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82647 size-full\" title=\"AWS associate eip\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/associate_eip.png\" alt=\"AWS associate eip\" width=\"1432\" height=\"713\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/associate_eip.png 1432w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/associate_eip-300x149.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/associate_eip-1024x510.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/associate_eip-768x382.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/associate_eip-844x420.png 844w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/associate_eip-640x319.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/associate_eip-681x339.png 681w\" sizes=\"(max-width: 1432px) 100vw, 1432px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Select the instance id and click on associate.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82648 size-full\" title=\"AWS eip associate select instance\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_associate_select_instance.png\" alt=\"AWS eip associate select instance\" width=\"1433\" height=\"714\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_associate_select_instance.png 1433w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_associate_select_instance-300x149.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_associate_select_instance-1024x510.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_associate_select_instance-768x383.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_associate_select_instance-843x420.png 843w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_associate_select_instance-640x319.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eip_associate_select_instance-681x339.png 681w\" sizes=\"(max-width: 1433px) 100vw, 1433px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">You can verify this by navigating to the EC2 dashboard.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82649 size-full\" title=\"AWS verify eip\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/verify_eip.png\" alt=\"AWS verify eip\" width=\"1434\" height=\"716\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/verify_eip.png 1434w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/verify_eip-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/verify_eip-1024x511.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/verify_eip-768x383.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/verify_eip-841x420.png 841w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/verify_eip-640x320.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/verify_eip-681x340.png 681w\" sizes=\"(max-width: 1434px) 100vw, 1434px\" \/><\/p>\n<p><b>Cleanup<\/b><\/p>\n<p><span style=\"font-weight: 400;\">As we don\u2019t want to be billed, we will terminate the instance and release the Elastic IP as well. Note that, if the elastic ip address is kept unassociated with any resource, we will be charged for that as well.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Go to EC2 console, select the instance, click on instance state and select terminate instance.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82650 size-full\" title=\"AWS terminate instance\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/terminate_instance.png\" alt=\"AWS terminate instance\" width=\"1437\" height=\"715\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/terminate_instance.png 1437w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/terminate_instance-300x149.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/terminate_instance-1024x510.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/terminate_instance-768x382.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/terminate_instance-844x420.png 844w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/terminate_instance-640x318.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/terminate_instance-681x339.png 681w\" sizes=\"(max-width: 1437px) 100vw, 1437px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Then navigate to the Elastic IP section, select the IP address and click on release IP address.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82651 size-full\" title=\"AWS release ip\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/release_ip.png\" alt=\"AWS release ip\" width=\"1435\" height=\"712\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/release_ip.png 1435w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/release_ip-300x149.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/release_ip-1024x508.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/release_ip-768x381.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/release_ip-846x420.png 846w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/release_ip-640x318.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/release_ip-681x338.png 681w\" sizes=\"(max-width: 1435px) 100vw, 1435px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"How_to_Create_an_EBS_Volume_and_Attach_to_EC2\"><\/span>How to Create an EBS Volume and Attach to EC2?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Login to AWS console and navigate to EC2 dashboard. Under Elastic Block Store, click on Volumes.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82652 size-full\" title=\"AWS ebs dashboard\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_dashboard.png\" alt=\"AWS ebs dashboard\" width=\"1436\" height=\"724\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_dashboard.png 1436w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_dashboard-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_dashboard-1024x516.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_dashboard-768x387.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_dashboard-833x420.png 833w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_dashboard-640x323.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_dashboard-681x343.png 681w\" sizes=\"(max-width: 1436px) 100vw, 1436px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Choose volume type. I am selecting gp2 for this demo. Enter the volume size and select the availability zone where you want to attach. If you want to encrypt the disk, you can select the option \u201cEncrypt this volume\u201d and select the default KMS key. For this tutorial, I am creating a volume without encryption. Review the settings and click on create volume.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82653 size-full\" title=\"AWS ebs create volume\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_volume.png\" alt=\"AWS ebs create volume\" width=\"1435\" height=\"723\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_volume.png 1435w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_volume-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_volume-1024x516.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_volume-768x387.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_volume-834x420.png 834w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_volume-640x322.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_volume-681x343.png 681w\" sizes=\"(max-width: 1435px) 100vw, 1435px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Navigate to the EBS dashboard to see the volume. Let us see how to attach this volume to an EC2 instance.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Click on the volume ID and click on Actions dropdown and select the option \u201cAttach Volume\u201d.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82654 size-full\" title=\"AWS ebs attach\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_attach.png\" alt=\"AWS ebs attach\" width=\"1436\" height=\"723\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_attach.png 1436w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_attach-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_attach-1024x516.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_attach-768x387.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_attach-834x420.png 834w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_attach-640x322.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_attach-681x343.png 681w\" sizes=\"(max-width: 1436px) 100vw, 1436px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Select the instance ID and click on attach.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82655 size-full\" title=\"AWS ebs select instance id\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_select_instance_id.png\" alt=\"AWS ebs select instance id\" width=\"1434\" height=\"721\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_select_instance_id.png 1434w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_select_instance_id-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_select_instance_id-1024x515.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_select_instance_id-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_select_instance_id-835x420.png 835w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_select_instance_id-640x322.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_select_instance_id-681x342.png 681w\" sizes=\"(max-width: 1434px) 100vw, 1434px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Migrating_EC2_instance_from_one_region_to_another\"><\/span>Migrating EC2 instance from one region to another<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">As we know that AWS has regions and availability zones. Most of the AWS services are region specific. If you are running your servers on AWS, you may come across a situation where you want to migrate an EC2 instance running on one region to another region or one AZ to another AZ. In this article, we will see how to move EC2 instances from one region to another and one AZ to another AZ and one VPC to another VPC.\u00a0<\/span><\/p>\n<p><b>What is a Region?<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Regions are the physical data centers of Amazon located around the world. Each region has different data centers which are physically isolated from each other and called availability zones. <\/span><\/p>\n<p><b>Migrate EC2 instance from one region to another<\/b><\/p>\n<p><span style=\"font-weight: 400;\">I have an EC2 instance already created in the us-east-1 (N Virginia) region and I will migrate the instance to us-east-2(Ohio) region.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82658 size-full\" title=\"AWS ec2 dashboard\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ec2-running.png\" alt=\"AWS ec2 dashboard\" width=\"1433\" height=\"723\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ec2-running.png 1433w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ec2-running-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ec2-running-1024x517.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ec2-running-768x387.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ec2-running-832x420.png 832w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ec2-running-640x323.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ec2-running-681x344.png 681w\" sizes=\"(max-width: 1433px) 100vw, 1433px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">To migrate the instance, we need to create an Amazon Machine Image (AMI) from the existing instance and have to create a new instance in the new region.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Select the instance and click on the actions dropdown, and select \u201cimage and templates\u201d and click on the \u201ccreate image\u201d.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Give a name and optional description then click on \u201ccreate image\u201d button.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82659 size-full\" title=\"AWS create image\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image.png\" alt=\"AWS create image\" width=\"1434\" height=\"722\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image.png 1434w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image-1024x516.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image-768x387.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image-834x420.png 834w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image-640x322.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image-681x343.png 681w\" sizes=\"(max-width: 1434px) 100vw, 1434px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Once the image is created, it needs to be copied to the destination region. In our case, it\u2019s Ohio(us-east-2). Select the image and click on actions dropdown and select copy ami.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82660 size-full\" title=\"AWS create image fields\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image_fields.png\" alt=\"AWS create image fields\" width=\"1437\" height=\"721\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image_fields.png 1437w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image_fields-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image_fields-1024x514.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image_fields-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image_fields-837x420.png 837w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image_fields-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image_fields-681x342.png 681w\" sizes=\"(max-width: 1437px) 100vw, 1437px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Give a name and description, select the destination region. Then click on the \u201cCopy AMI\u201d.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82661 size-full\" title=\"Amazon Machine Images \" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/copy_ami.png\" alt=\"Amazon Machine Images \" width=\"1435\" height=\"719\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/copy_ami.png 1435w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/copy_ami-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/copy_ami-1024x513.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/copy_ami-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/copy_ami-838x420.png 838w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/copy_ami-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/copy_ami-681x341.png 681w\" sizes=\"(max-width: 1435px) 100vw, 1435px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Once the AMI is copied, the same will be visible on the destination region as well.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82662 size-full\" title=\"copied ami\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/copied_ami.png\" alt=\"copied ami\" width=\"1435\" height=\"725\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/copied_ami.png 1435w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/copied_ami-300x152.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/copied_ami-1024x517.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/copied_ami-768x388.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/copied_ami-831x420.png 831w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/copied_ami-640x323.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/copied_ami-681x344.png 681w\" sizes=\"(max-width: 1435px) 100vw, 1435px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Now, we need to launch an EC2 instance using the newly copied AMI.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82664 size-full\" title=\"select ami1\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_ami1.png\" alt=\"select ami1\" width=\"1431\" height=\"718\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_ami1.png 1431w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_ami1-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_ami1-1024x514.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_ami1-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_ami1-837x420.png 837w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_ami1-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_ami1-681x342.png 681w\" sizes=\"(max-width: 1431px) 100vw, 1431px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">That\u2019s it, we have successfully migrated the instance from the N Virginia region to the Ohio region. <\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82665 size-full\" title=\"migrated instance\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/migrated_instance.png\" alt=\"migrated instance\" width=\"1436\" height=\"718\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/migrated_instance.png 1436w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/migrated_instance-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/migrated_instance-1024x512.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/migrated_instance-768x384.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/migrated_instance-840x420.png 840w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/migrated_instance-640x320.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/migrated_instance-681x341.png 681w\" sizes=\"(max-width: 1436px) 100vw, 1436px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Setting_up_Performance_Monitoring_for_EC2_Instance\"><\/span>Setting up Performance Monitoring for EC2 Instance<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Monitoring your cloud infrastructure is one of the major challenges you face when you migrate your servers to the cloud. Most of the AWS services integrate seamlessly with AWS CloudWatch, which is Amazon\u2019s built- in service that helps you to configure monitoring and alerts in just a few clicks.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Amazon EC2 allows you to create instances on the cloud within minutes. Since it\u2019s a managed service, it\u2019s recommended to utilize the monitoring tools provided by AWS.<\/span><\/p>\n<p><b>AWS CloudWatch Overview<\/b><\/p>\n<p><span style=\"font-weight: 400;\">CloudWatch is a monitoring tool or service offered by Amazon for the infrastructure and the applications running on it. CloudWatch can be used to monitor various AWS services and create metrics and alarms. It enables real time monitoring for AWS services like EC2 instances, RDS, etc.\u00a0<\/span><\/p>\n<p><b>Namespaces: <\/b><span style=\"font-weight: 400;\">A container for CloudWatch metrics. Metrics in one namespace are isolated from another namespace.<\/span><\/p>\n<p><b>Metrics: <\/b><span style=\"font-weight: 400;\">Set of time-ordered points published to CloudWatch.\u00a0<\/span><\/p>\n<p><b>Dimensions: <\/b><span style=\"font-weight: 400;\">A unique identifier for the metric.\u00a0<\/span><\/p>\n<p><b>Statistics: <\/b><span style=\"font-weight: 400;\">Metric data aggregated over the time period.\u00a0<\/span><\/p>\n<p><b>Alarms: <\/b><span style=\"font-weight: 400;\">Used to initiate actions on your behalf. Alarm monitors the metrics based on time interval and performs the suggested actions.<\/span><\/p>\n<p><b>Configuring CloudWatch Alarm<\/b><\/p>\n<p><span style=\"font-weight: 400;\">We will see what are the basic alarms that need to be configured while deploying an EC2 instance. For this demo, we will configure default and custom metrics for the deployed EC2 instances. We also configure healcheck and HTTP errors.\u00a0<\/span><b><\/b><\/p>\n<ul>\n<li><b>CPU Utilization<\/b><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">CPU utilization is a CloudWatch metric that is available by default. To configure this metric, login to the AWS management console, navigate to the Management tools and select CloudWatch.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82666 size-full\" title=\"cloudwatch nav\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/cloudwatch_nav.png\" alt=\"cloudwatch nav\" width=\"1432\" height=\"720\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/cloudwatch_nav.png 1432w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/cloudwatch_nav-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/cloudwatch_nav-1024x515.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/cloudwatch_nav-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/cloudwatch_nav-835x420.png 835w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/cloudwatch_nav-640x322.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/cloudwatch_nav-681x342.png 681w\" sizes=\"(max-width: 1432px) 100vw, 1432px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Click on the Alarms on the left then click on create alarm.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82667 size-full\" title=\"create alarm in AWS\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_alarm.png\" alt=\"create alarm in AWS\" width=\"1434\" height=\"718\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_alarm.png 1434w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_alarm-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_alarm-1024x513.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_alarm-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_alarm-839x420.png 839w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_alarm-640x320.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_alarm-681x341.png 681w\" sizes=\"(max-width: 1434px) 100vw, 1434px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">On the next screen, click on the select metric.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82668 size-full\" title=\"select metric in AWS\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_metric.png\" alt=\"select metric in AWS\" width=\"1430\" height=\"718\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_metric.png 1430w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_metric-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_metric-1024x514.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_metric-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_metric-836x420.png 836w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_metric-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_metric-681x342.png 681w\" sizes=\"(max-width: 1430px) 100vw, 1430px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Select the metric \u201cCPU Utilization\u201d for the EC2 instance which you want to monitor. I have selected the instance named as cloudwatch-demo.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82669 size-full\" title=\"cpuutil metric in AWS\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/cpuutil_metric.png\" alt=\"cpuutil metric in AWS\" width=\"1434\" height=\"720\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/cpuutil_metric.png 1434w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/cpuutil_metric-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/cpuutil_metric-1024x514.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/cpuutil_metric-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/cpuutil_metric-837x420.png 837w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/cpuutil_metric-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/cpuutil_metric-681x342.png 681w\" sizes=\"(max-width: 1434px) 100vw, 1434px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">On the following screen, you will have an option to give a name and conditions for the alarm. Enter the details and click on next.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82670 size-full\" title=\"metric form in AWS\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/metric_form.png\" alt=\"metric form in AWS\" width=\"1433\" height=\"720\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/metric_form.png 1433w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/metric_form-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/metric_form-1024x515.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/metric_form-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/metric_form-836x420.png 836w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/metric_form-640x322.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/metric_form-681x342.png 681w\" sizes=\"(max-width: 1433px) 100vw, 1433px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">On the next page, we need to configure the alarm actions. Define when the alarm should perform the actions and select the SNS topic. We can create a new SNS topic from this page if we don\u2019t have the existing one.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82671 size-full\" title=\"alarm actions in AWS\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_actions.png\" alt=\"alarm actions in AWS\" width=\"1425\" height=\"715\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_actions.png 1425w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_actions-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_actions-1024x514.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_actions-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_actions-837x420.png 837w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_actions-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_actions-681x342.png 681w\" sizes=\"(max-width: 1425px) 100vw, 1425px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Apart from sending the notifications, CloudWatch alarm can also perform other actions like autoscaling and EC2 state change, etc. For example, if the metric goes beyond the desired value, we can set the alarm to reboot the instance.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82672 size-full\" title=\"alarm ec2 reboot in AWS\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_ec2_reboot.png\" alt=\"alarm ec2 reboot in AWS\" width=\"1427\" height=\"720\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_ec2_reboot.png 1427w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_ec2_reboot-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_ec2_reboot-1024x517.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_ec2_reboot-768x387.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_ec2_reboot-832x420.png 832w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_ec2_reboot-640x323.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_ec2_reboot-681x344.png 681w\" sizes=\"(max-width: 1427px) 100vw, 1427px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Click on next, you will see a review page. Review the settings and click on create alarm.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82673 size-full\" title=\"AWS alarm review\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_review.png\" alt=\"AWS alarm review\" width=\"1433\" height=\"721\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_review.png 1433w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_review-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_review-1024x515.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_review-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_review-835x420.png 835w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_review-640x322.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_review-681x343.png 681w\" sizes=\"(max-width: 1433px) 100vw, 1433px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Once done, you can see the alarm created on the CloudWatch dashboard.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82674 size-full\" title=\"AWS alarm dash\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_dash.png\" alt=\"AWS alarm dash\" width=\"1432\" height=\"720\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_dash.png 1432w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_dash-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_dash-1024x515.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_dash-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_dash-835x420.png 835w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_dash-640x322.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_dash-681x342.png 681w\" sizes=\"(max-width: 1432px) 100vw, 1432px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">If you click on the alarm name, you would be able to see a detailed view of an alarm.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82675 size-full\" title=\"AWS alarm view\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_view.png\" alt=\"AWS alarm view\" width=\"1431\" height=\"720\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_view.png 1431w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_view-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_view-1024x515.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_view-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_view-835x420.png 835w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_view-640x322.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_view-681x343.png 681w\" sizes=\"(max-width: 1431px) 100vw, 1431px\" \/><\/p>\n<p><b>System Status Check<\/b><\/p>\n<p><span style=\"font-weight: 400;\">StatusCheckFailed_System is another important metric for the EC2 instances. This metric is also available by default. To configure alarm for this metric, repeat the previous steps and select the metric as \u201cStatusCheckFailed_System\u201d.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82676 size-full\" title=\"AWS alarm status check\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_statuscheck.png\" alt=\"AWS alarm status check\" width=\"1430\" height=\"715\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_statuscheck.png 1430w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_statuscheck-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_statuscheck-1024x512.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_statuscheck-768x384.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_statuscheck-840x420.png 840w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_statuscheck-640x320.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/alarm_statuscheck-681x341.png 681w\" sizes=\"(max-width: 1430px) 100vw, 1430px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Please remember that there are two status checks performed. System status check and Instance status check.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>System Status Check<\/strong> monitors the AWS system required to use our instance. This check will fail in case of:<\/span><\/p>\n<ul>\n<li><span style=\"font-weight: 400;\">Loss of network connectivity<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Software or Hardware issues on the physical host<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Power issues<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Usually these failures will be fixed by AWS or by rebooting the instance.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>Instance Status Check<\/strong> monitors the configuration and softwares of an instance. This status check will fail in case of:\u00a0<\/span><\/p>\n<ul>\n<li><span style=\"font-weight: 400;\">Incorrect network configuration<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Exhausted memory<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Corrupted disk\/filesystem<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Usually these failures need our involvement to be resolved.\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For this demonstration, I have selected a metric as \u201cStatusCheckFailed_System\u201d to create an alarm. Apart from selecting SNS topics to send a notification, the preferred EC2 action for this alarm would be the \u201crecover this instance\u201d.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82677 size-full\" title=\"AWS recover instance\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/recover_instance.png\" alt=\"AWS recover instance\" width=\"1431\" height=\"716\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/recover_instance.png 1431w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/recover_instance-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/recover_instance-1024x512.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/recover_instance-768x384.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/recover_instance-839x420.png 839w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/recover_instance-640x320.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/recover_instance-681x341.png 681w\" sizes=\"(max-width: 1431px) 100vw, 1431px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">In this demonstration, we have created an EC2 instance, connected to the instance using SSH and allocated an Elastic IP address to the instance. We have also learnt how to create EBS volume and attach to EC2 instances. We have also seen how to migrate instances from one region to another. Hope you are able to follow along and the tutorial helped you.\u00a0<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Compare_Amazon_RDS_and_Amazon_EC2_for_MySQL\"><\/span>Compare <a href=\"https:\/\/www.whizlabs.com\/blog\/amazon-rds\/\">Amazon RDS<\/a> and Amazon EC2 for MySQL<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Choosing from various services is a\u00a0 common scenario you will come across when you decide to migrate databases from on-premise to AWS cloud. MySQL can be installed directly on the Amazon EC2 instance. AWS also provides dedicated service RDS for databases. In this article, we will see the pros and cons of Amazon RDS and Amazon EC2 for MySQL. <\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_is_EC2\"><\/span>What is EC2?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Amazon Elastic Compute Cloud (EC2) is a compute service offered by AWS which can scale up and down easily. EC2 is compute power which can be used for any purpose. To run database services, we need to provision EC2 instances and install database engines on the instance.\u00a0<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_is_Amazon_RDS\"><\/span>What is Amazon RDS?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Amazon Relational Database Service (RDS) is a managed Database-as-a-Service (DBaaS) which is available for popular database engines like MySQL, MariaDB, PostgreSQL, Oracle and MsSQL.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">It makes it easier to manage the operations. Amazon RDS also supports Amazon Aurora compatible with MySQL and PostgreSQL.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Difference_between_RDS_and_EC2\"><\/span>Difference between RDS and EC2<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Let us now compare how the RDS and EC2 instance differs in various aspects such as High Availability, Scalability, Backups, etc.<\/span><\/p>\n<p><b>Administration<\/b><\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\"><b>RDS<\/b><\/p>\n<\/td>\n<td>\n<p style=\"text-align: center;\"><b>EC2<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">RDS takes full responsibility like configuration, management, maintenance and security. RDS is a cost effective solution and easy to set up. It eliminates the routine maintenance activities.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">With RDS, we don\u2019t have control over the system.\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400;\">EC2 gives more control over the softwares, OS and database. EC2 allows database administrators to manage backups and replication. We need to take care of the daily maintenance activities like security patch updates, replication, backup, etc.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">EC2 offers complete control.\u00a0<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><b>High Availability<\/b><\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\"><b>RDS<\/b><\/p>\n<\/td>\n<td>\n<p style=\"text-align: center;\"><b>EC2<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">RDS creates a primary DB instance and replicates the data in another availability zone.\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400;\">We need to configure the instance for high availability.\u00a0<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><b>Scalability<\/b><\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\"><b>RDS<\/b><\/p>\n<\/td>\n<td>\n<p style=\"text-align: center;\"><b>EC2<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">RDS can scale seamlessly both horizontally and vertically. Increasing the instance capacity can be done in a few clicks and adding more instances to scale horizontally can be automated.\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400;\">In case of EC2 instances, we need to configure the scalability feature. This includes setting up an auto scaling group, load balancing, etc.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><b>Backups<\/b><\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\"><b>RDS<\/b><\/p>\n<\/td>\n<td>\n<p style=\"text-align: center;\"><b>EC2<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Backups can be automated with RDS. Backup events can be monitored using CloudWatch. It\u2019s also possible to get the snapshots on-demand.\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400;\">We need to take care of the backups and need to use other monitoring tools to monitor the backup activities.\u00a0<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><b>Performance<\/b><\/p>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\"><b>RDS<\/b><\/p>\n<\/td>\n<td>\n<p style=\"text-align: center;\"><b>EC2<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">RDS offers provisioned IOPS which allows you to get faster and consistent Input\/Output performance.\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400;\">EBS is the backbone of EC2 instances. By selecting the right type of EBS volumes, we can achieve the desired IOPS.\u00a0<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><b>Monitoring<\/b><\/p>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\"><b>RDS<\/b><\/p>\n<\/td>\n<td>\n<p style=\"text-align: center;\"><b>EC2<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">RDS integrates seamlessly with the other AWS services and CloudWatch gives the insights of database performance.\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400;\">CloudWatch can not be used to monitor the performance of databases installed on EC2 instances. We need to configure a third party tool for the same.\u00a0<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><b>Storage<\/b><\/p>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\"><b>RDS<\/b><\/p>\n<\/td>\n<td>\n<p style=\"text-align: center;\"><b>EC2<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">There are 3 types of storage options available in RDS.\u00a0<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><b>General Purpose SSD:<\/b><span style=\"font-weight: 400;\"> This is a cost effective storage providing 3000 IOPS and single digit millisecond latency.\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li><b>Provisioned IOPS: <\/b><span style=\"font-weight: 400;\">Suitable for I\/O intensive workloads. Provides low latency and high IOPS for extended periods of time.<\/span><\/li>\n<\/ul>\n<ul>\n<li><b>Magnetic: <\/b><span style=\"font-weight: 400;\">Provides a backward compatible magnetic storage.\u00a0<\/span><\/li>\n<\/ul>\n<\/td>\n<td><span style=\"font-weight: 400;\">Based on the EC2 instance type and EBS volume type, high IOPS can be achieved.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Refer to <\/span><a href=\"https:\/\/docs.aws.amazon.com\/AWSEC2\/latest\/UserGuide\/ebs-optimized.html\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">EBS optimized instances<\/span><\/a><span style=\"font-weight: 400;\"> to know more about the maximum possible bandwidth, throughput and IOPS.\u00a0<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><b>Compatibility<\/b><\/p>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\"><b>RDS<\/b><\/p>\n<\/td>\n<td>\n<p style=\"text-align: center;\"><b>EC2<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">RDS supports Amazon Aurora, MySQL, PostgreSQL, MariaDB, SQL Server, Oracle.\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Since the database engine installation is manual with EC2 instances, we can any database as we need.\u00a0<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><b>Security<\/b><\/p>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\"><b>RDS<\/b><\/p>\n<\/td>\n<td>\n<p style=\"text-align: center;\"><b>EC2<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Data in RDS is encrypted both at rest and in transit. The read replicas are also encrypted at rest.<\/span><\/td>\n<td><span style=\"font-weight: 400;\">In the case of EC2, the data is stored in EBS volumes. The EBS volumes can be encrypted at rest and in transit.\u00a0<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><b>Pricing<\/b><\/p>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td><b>RDS<\/b><\/td>\n<td><b>EC2<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">RDS is slightly costlier than EC2 since most of the maintenance activities are taken care of by Amazon.<\/span><\/td>\n<td><span style=\"font-weight: 400;\">If the instance is optimized properly with correct instance type and EBS volumes, slightly cheaper than the RDS instances.\u00a0<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Choosing_between_RDS_and_EC2\"><\/span>Choosing between RDS and EC2<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">If you are looking for a more automated solution RDS is a better option than EC2. However, it depends on your needs. EC2 provides more control over the system.<\/span><\/p>\n<h4>Running MySQL Database on Amazon EC2 Instance<\/h4>\n<p><span style=\"font-weight: 400;\">In the following steps, we will see how to <a href=\"https:\/\/www.whizlabs.com\/blog\/what-is-cloud-sql-learn-all-the-features\/\">setup MySQL<\/a> on the EC2 instance. I assume that you have an EC2 instance created and is in running state. If not, please navigate to the EC2 dashboard and launch a new instance.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Go ahead and launch the instance.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82733 size-full\" title=\"AWS launch instance1\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance1.png\" alt=\"AWS launch instance1\" width=\"1432\" height=\"718\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance1.png 1432w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance1-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance1-1024x513.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance1-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance1-838x420.png 838w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance1-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance1-681x341.png 681w\" sizes=\"(max-width: 1432px) 100vw, 1432px\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82734 size-full\" title=\"AWS running ec2\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/running_ec2.png\" alt=\"AWS running ec2\" width=\"1433\" height=\"713\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/running_ec2.png 1433w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/running_ec2-300x149.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/running_ec2-1024x509.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/running_ec2-768x382.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/running_ec2-844x420.png 844w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/running_ec2-640x318.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/running_ec2-681x339.png 681w\" sizes=\"(max-width: 1433px) 100vw, 1433px\" \/><\/p>\n<h4>Connect to an EC2 instance<\/h4>\n<p><span style=\"font-weight: 400;\">Connect the running instance via SSH. I have created an Ubuntu instance for this tutorial. Commands may vary depending on the OS.\u00a0<\/span><\/p>\n<p><b>sudo apt update<\/b><\/p>\n<p><b>sudo apt install mysql-server<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Check the status by running the command \u200b\u200b<\/span><b>sudo systemctl status mysql<\/b><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82737 size-full\" title=\"connect to amazon ec2 instance\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/mysql_running.png\" alt=\"connect to amazon ec2 instance\" width=\"856\" height=\"414\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/mysql_running.png 856w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/mysql_running-300x145.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/mysql_running-768x371.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/mysql_running-640x310.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/mysql_running-681x329.png 681w\" sizes=\"(max-width: 856px) 100vw, 856px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Let\u2019s login to MySQL as root and set a password.<\/span><\/p>\n<p><b>sudo mysql<\/b><\/p>\n<p><b>mysql&gt; ALTER USER &#8216;root&#8217;@&#8217;localhost&#8217; IDENTIFIED WITH mysql_native_password BY &#8216;password&#8217;;<\/b><\/p>\n<p><b>mysql&gt; FLUSH PRIVILEGES;<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Now, exit and login again with password.\u00a0<\/span><\/p>\n<p><b>sudo mysql -u root -p<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Let\u2019s create a database and name it as mysql_db\u00a0<\/span><\/p>\n<p><b>CREATE DATABASE mysql_db;<\/b><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82738 size-full\" title=\"create db in AWS\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_db.png\" alt=\"create db in AWS\" width=\"860\" height=\"420\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_db.png 860w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_db-300x147.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_db-768x375.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_db-640x313.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_db-681x333.png 681w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">That\u2019s it! We have created an EC2 instance and installed a MySQL server in it.\u00a0<\/span><\/p>\n<h4><b>Connect using MySQL Workbench<\/b><\/h4>\n<p><span style=\"font-weight: 400;\">MySQL Workbench is a popular database administrator tool. Let us use this tool to connect to our database running on the EC2 instance.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82739 size-full\" title=\"sql workbench\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/sql_workbench.png\" alt=\"sql workbench\" width=\"1013\" height=\"712\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/sql_workbench.png 1013w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/sql_workbench-300x211.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/sql_workbench-768x540.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/sql_workbench-598x420.png 598w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/sql_workbench-640x450.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/sql_workbench-681x479.png 681w\" sizes=\"(max-width: 1013px) 100vw, 1013px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Click on the plus symbol to add a new DB connection.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Give a name to the connection and the connection type as \u201cStandard TCP\/IP over SSH\u201d. The SSH hostname is the public DNS of our EC2 instance. SSH keyfile is the pem file we have downloaded while creating the instance.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82740 size-full\" title=\"workbench ssh\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/workbench_ssh.png\" alt=\"workbench ssh\" width=\"795\" height=\"496\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/workbench_ssh.png 795w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/workbench_ssh-300x187.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/workbench_ssh-768x479.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/workbench_ssh-673x420.png 673w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/workbench_ssh-640x399.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/workbench_ssh-681x425.png 681w\" sizes=\"(max-width: 795px) 100vw, 795px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Review the settings and click on OK. You should be able to see the connection name.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82741 size-full\" title=\"connectio name in AWS\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/connectioname.png\" alt=\"connectio name in AWS\" width=\"1020\" height=\"710\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/connectioname.png 1020w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/connectioname-300x209.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/connectioname-768x535.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/connectioname-603x420.png 603w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/connectioname-640x445.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/connectioname-681x474.png 681w\" sizes=\"(max-width: 1020px) 100vw, 1020px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Click on the connection name and enter the database user password. Once connected, you should be able to see the databases and tables.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82742 size-full\" title=\"AWS workbench db view\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_view.png\" alt=\"AWS workbench db view\" width=\"1029\" height=\"719\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_view.png 1029w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_view-300x210.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_view-1024x716.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_view-768x537.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_view-601x420.png 601w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_view-640x447.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_view-681x476.png 681w\" sizes=\"(max-width: 1029px) 100vw, 1029px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">In the query area, we can write any SQL queries and execute them.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In this tutorial, we have seen the difference and comparison of RDS instances and running MySQL server on EC2 instances. We have also seen how to install MySQL server on EC2 instance and connect to the database using the MySQL Workbench tool from our local system. Hope this helped you to learn.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"How_to_Deploy_an_Application_to_Elastic_Beanstalk\"><\/span>How to Deploy an Application to Elastic Beanstalk?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">As we know that Amazon Web Services (AWS) provides various services including IaaS, PaaS, SaaS, Elastic Beanstalk is one of the popular services offered by AWS. In this article, we will see what the Elastic Beanstalk is and what are its components. We will also see how we can deploy an application to it. <\/span><\/p>\n<h4>What is Elastic Beanstalk?<\/h4>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82716 size-full\" title=\"AWS ebs\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_logo.png\" alt=\"AWS ebs\" width=\"800\" height=\"445\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_logo.png 800w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_logo-300x167.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_logo-768x427.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_logo-755x420.png 755w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_logo-640x356.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_logo-681x379.png 681w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Elastic Beanstalk is a Platform as a Servier (PaaS) offering of Amazon Web Services (AWS). Unlike the IaaS offerings like EC2, Elastic Beanstalk allows you to use preconfigured servers for the application. With Elastic Beanstalk, deploying and scaling the applications become easy. Elastic Beanstalk provides support for popular programming languages like Go, Ruby, Python, Java, .Net, Node.js and Docker containers. When deploying the applications using Elastic Beanstalk, we don\u2019t have to worry about the underlying infrastructure.<\/span><\/p>\n<h4><b>Benefits of Elastic Beanstalk<\/b><\/h4>\n<p><span style=\"font-weight: 400;\">AWS offers various computing services like EC2, ECS and serverless platforms like AWS Lambda. Then why do we need to use Elastic Beanstalk? The following are some of the benefits of using Elastic Beanstalk to deploy your applications:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Easy to Begin and Faster Deployments<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Elastic Beanstalk makes the application deployment easier. Deployment can be done using AWS management console or visual studio. Elastic Beanstalk manages the capacity provisioning, availability, autoscaling, and application monitoring.\u00a0<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Simplified Operations<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">There is no need to focus on server configuration, firewalls, networks, etc. Most of the regular operations are taken care of by AWS. As an application developer, you have more time to focus on developing features and review code.\u00a0<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Resource Control<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Even though the Elastic Beanstalk is a PaaS offering, it still offers freedom to select the AWS resources like EC2 instance type, and also allows full control over the AWS resources.\u00a0<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Scaling<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Elastic Beanstalk provides an adjustable auto scaling setting so our application can handle the workloads in peak times without any issue.<\/span><\/p>\n<h4>Components of Elastic Beanstalk<\/h4>\n<p><span style=\"font-weight: 400;\">We have seen what <a href=\"https:\/\/www.whizlabs.com\/blog\/aws-elastic-beanstalk\/\">AWS Elastic Beanstalk<\/a> is and some of its benefits. Before deploying an application to the Elastic Beanstalk, let us see some of the key concepts or components of it.\u00a0<\/span><\/p>\n<p><b>Application<\/b><\/p>\n<p><span style=\"font-weight: 400;\">An Elastic Beanstalk application is similar to a folder. The application is named the same as the project home directory. It\u2019s a collection of components like environments, versions and environment configuration.<\/span><\/p>\n<p><b>Application Version<\/b><\/p>\n<p><span style=\"font-weight: 400;\">An application version is a labeled iteration of deployable code of the web application.<\/span><\/p>\n<p><b>Environment<\/b><\/p>\n<p><span style=\"font-weight: 400;\">We can configure different environments like development, testing, production. Each environment will run a single version of the application.<\/span><\/p>\n<p><b>Environment Tier<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Elastic Beanstalk offers two environment tiers.\u00a0<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Web Server Environment : Applications installed on this environment handle all the HTTP requests received from the users.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Worker Environment: This handles the background process and assists the web server environment.\u00a0<\/span><\/li>\n<\/ol>\n<h4>Architecture of Elastic Beanstalk<\/h4>\n<p><span style=\"font-weight: 400;\">Let us get an idea of the architecture of Elastic Beanstalk.\u00a0<\/span><\/p>\n<p><b>Elastic Load Balancer<\/b><span style=\"font-weight: 400;\"> : When the application receives a large amount of requests from the users, Route53 forwards that request to the ELB and the ELB distributes these requests to EC2 instances placed in an auto scaling group.\u00a0<\/span><\/p>\n<p><b>Auto Scaling Group: <\/b><span style=\"font-weight: 400;\">Auto scaling group automatically adds additional instances to accommodate the load when it\u2019s increased and removes the instance when the load decreases.\u00a0<\/span><\/p>\n<p><b>Host Manager: <\/b><span style=\"font-weight: 400;\">Host manager is a software component that will run on the EC2 instances and used to generate logs, instance level events, etc.\u00a0<\/span><\/p>\n<p><b>Security Groups: <\/b><span style=\"font-weight: 400;\">Security group acts as a firewall for the instances. The default security group for Elastic Beanstalk allows HTTP port 80.\u00a0<\/span><\/p>\n<h4>Deploying Nodejs application on Elastic Beanstalk<\/h4>\n<p><span style=\"font-weight: 400;\">In this section, we will discuss the steps involved in deploying an application to the Elastic Beanstalk. I will deploy the sample Nodejs application.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Login to AWS console and navigate to the Elastic Beanstalk.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82717 size-full\" title=\"beanstalk dashboard\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/beanstalk_dashboard.png\" alt=\"beanstalk dashboard\" width=\"1430\" height=\"719\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/beanstalk_dashboard.png 1430w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/beanstalk_dashboard-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/beanstalk_dashboard-1024x515.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/beanstalk_dashboard-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/beanstalk_dashboard-835x420.png 835w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/beanstalk_dashboard-640x322.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/beanstalk_dashboard-681x342.png 681w\" sizes=\"(max-width: 1430px) 100vw, 1430px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Click on the create application button, on the next screen you will get an option to enter name and tags.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82718 size-full\" title=\"AWS ebs create web app\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_web_app.png\" alt=\"AWS ebs create web app\" width=\"1430\" height=\"729\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_web_app.png 1430w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_web_app-300x153.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_web_app-1024x522.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_web_app-768x392.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_web_app-824x420.png 824w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_web_app-640x326.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_web_app-681x347.png 681w\" sizes=\"(max-width: 1430px) 100vw, 1430px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">We need to provide the application information such as the platform. Select the Node.js as a platform.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82719 size-full\" title=\"AWS ebs select platform\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_select_platform.png\" alt=\"AWS ebs select platform\" width=\"1434\" height=\"720\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_select_platform.png 1434w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_select_platform-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_select_platform-1024x514.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_select_platform-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_select_platform-837x420.png 837w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_select_platform-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_select_platform-681x342.png 681w\" sizes=\"(max-width: 1434px) 100vw, 1434px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">For this tutorial, I am not going to upload my code. Instead I will select the sample application and continue. If you have your nodejs application ready, select the option upload and add your application code. Once done with the configuration, click on create application. It may take few minutes to start an environment.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82720 size-full\" title=\"AWS ebs create app\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_app.png\" alt=\"AWS ebs create app\" width=\"1431\" height=\"724\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_app.png 1431w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_app-300x152.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_app-1024x518.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_app-768x389.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_app-830x420.png 830w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_app-640x324.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_create_app-681x345.png 681w\" sizes=\"(max-width: 1431px) 100vw, 1431px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">After a few minutes, you can see that the application was created.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82721 size-full\" title=\"AWS ebs app created\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_created.png\" alt=\"AWS ebs app created\" width=\"1428\" height=\"716\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_created.png 1428w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_created-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_created-1024x513.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_created-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_created-838x420.png 838w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_created-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_created-681x341.png 681w\" sizes=\"(max-width: 1428px) 100vw, 1428px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Click on the application name and view more details like URL, health status, etc.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82722 size-full\" title=\"AWS ebs app health\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_health.png\" alt=\"AWS ebs app health\" width=\"1432\" height=\"719\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_health.png 1432w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_health-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_health-1024x514.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_health-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_health-836x420.png 836w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_health-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_health-681x342.png 681w\" sizes=\"(max-width: 1432px) 100vw, 1432px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Open the application URL to verify if the application is accessible.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82723 size-full\" title=\"AWS ebs app url\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_url.png\" alt=\"AWS ebs app url\" width=\"1429\" height=\"754\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_url.png 1429w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_url-300x158.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_url-1024x540.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_url-768x405.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_url-796x420.png 796w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_url-640x338.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_app_url-681x359.png 681w\" sizes=\"(max-width: 1429px) 100vw, 1429px\" \/><\/p>\n<h4>Deploy an application using AWS CLI<\/h4>\n<p><span style=\"font-weight: 400;\">We have deployed our application from the AWS management console. Let us now see how this can be achieved by using AWS CLI.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">I assume that you already have AWS CLI installed on your local machine and the aws credentials are stored.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The next step is to install EB CLI. To do that run the following command. It may take a couple of minutes to install.<\/span><\/p>\n<p><b>pip install awsebcli &#8211;upgrade &#8211;user<\/b><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82725 size-full\" title=\"AWS ebcli install\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebcli_install.png\" alt=\"AWS ebcli install\" width=\"911\" height=\"465\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebcli_install.png 911w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebcli_install-300x153.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebcli_install-768x392.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebcli_install-823x420.png 823w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebcli_install-640x327.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebcli_install-681x348.png 681w\" sizes=\"(max-width: 911px) 100vw, 911px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Once we have the EB CLI installed, run the following command.<\/span><\/p>\n<p><b>eb init<\/b><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82726 size-full\" title=\"AWS ebinit cmd\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebinit_cmd.png\" alt=\"AWS ebinit cmd\" width=\"912\" height=\"395\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebinit_cmd.png 912w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebinit_cmd-300x130.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebinit_cmd-768x333.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebinit_cmd-640x277.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebinit_cmd-681x295.png 681w\" sizes=\"(max-width: 912px) 100vw, 912px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">You will be prompted to enter a default region, which application to use and if you want to use Codecommit.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">I will be creating a new application for this demo.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82727 size-full\" title=\"AWS new app cli\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/new_app_cli.png\" alt=\"AWS new app cli\" width=\"910\" height=\"153\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/new_app_cli.png 910w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/new_app_cli-300x50.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/new_app_cli-768x129.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/new_app_cli-640x108.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/new_app_cli-681x114.png 681w\" sizes=\"(max-width: 910px) 100vw, 910px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Give a name to your application and you\u2019ll be prompted to select a platform and a version.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82728 size-full\" title=\"AWS select platform\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_platform.png\" alt=\"AWS select platform\" width=\"916\" height=\"369\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_platform.png 916w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_platform-300x121.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_platform-768x309.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_platform-640x258.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_platform-681x274.png 681w\" sizes=\"(max-width: 916px) 100vw, 916px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Optionally, you can set up SSH to the instance by selecting or creating a keypair.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To create an environment run the command <\/span><b>eb create &lt;env-name&gt; <\/b><span style=\"font-weight: 400;\">and run the command\u00a0<\/span><\/p>\n<p><b>eb deploy<\/b><span style=\"font-weight: 400;\">.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Once the application is deployed, the next step is to set up a custom domain name and SSL certificate. Route53 can be used to map your domain with the URL generated by AWS. SSL certificates can be obtained for instance by visiting a certificate manager.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Hope this tutorial helped you to learn what Elastic Beanstalk is and how it works. We have also seen how to create and deploy applications to Elastic Beanstalk, hope you were able to follow along. Feel free to post your comments if you face any issues while deploying your application.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_to_create_EC2_EBS_automated_backup\"><\/span>How to create EC2 (EBS) automated backup?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Backing up the data is critical for any company regardless of where you store your data. Bacup and restore is the must have disaster recovery method. Assuming that you run your servers on AWS cloud, in this tutorial we will walk you through how to backup EC2 instances using AWS cloud native services. We will be automating the EC2 instance backups.\u00a0<\/span><\/p>\n<h4>How to backup EC2 instances?<\/h4>\n<p><span style=\"font-weight: 400;\">When we talk about backing up EC2 instances, we are actually talking about backing up Elastic Block Store (EBS) volumes by creating a snapshot. EBS snapshots are stored in amazon S3.<\/span><\/p>\n<h4>Different ways to backup EC2 instances<\/h4>\n<p><span style=\"font-weight: 400;\">There are different services and methods available to automate EC2 instance backup. We will see one by one in this demonstration.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Using AWS Backup<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Using Data Lifecycle Manager<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Using CloudWatch Events<\/span><\/li>\n<\/ul>\n<h4>Automate EBS Snapshot Backup using AWS Backup Service<\/h4>\n<p><span style=\"font-weight: 400;\">AWS Backup is a fully managed AWS service which is used to automate AWS backups. It can be used to backup EBS volumes and RDS instances, DynamoDB and EFS file systems. To follow along, create an EBS volume which needs to be backed up.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Login to AWS management console and navigate to the AWS Backup service.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82680 size-full\" title=\"AWS backup dashboard\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_dashboard.png\" alt=\"AWS backup dashboard\" width=\"1436\" height=\"722\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_dashboard.png 1436w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_dashboard-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_dashboard-1024x515.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_dashboard-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_dashboard-835x420.png 835w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_dashboard-640x322.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_dashboard-681x342.png 681w\" sizes=\"(max-width: 1436px) 100vw, 1436px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Click on \u201cCreate Backup Plan\u201d.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82682 size-full\" title=\"AWS create backup\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup.png\" alt=\"AWS create backup\" width=\"1436\" height=\"719\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup.png 1436w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup-1024x513.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup-839x420.png 839w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup-640x320.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup-681x341.png 681w\" sizes=\"(max-width: 1436px) 100vw, 1436px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">In the create backup plan page, we have an option to create a plan from scratch, use a template and define a plan using JSON.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82686 size-full\" title=\"AWS create backup form\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_form.png\" alt=\"AWS create backup form\" width=\"1434\" height=\"721\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_form.png 1434w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_form-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_form-1024x515.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_form-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_form-835x420.png 835w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_form-640x322.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_form-681x342.png 681w\" sizes=\"(max-width: 1434px) 100vw, 1434px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">If you select, start with the template option, you will see the available templates in the dropdown such as daily 365 day retention.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82684 size-full\" title=\"AWS create backup template\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_template.png\" alt=\"AWS create backup template\" width=\"1437\" height=\"719\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_template.png 1437w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_template-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_template-1024x512.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_template-768x384.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_template-839x420.png 839w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_template-640x320.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_template-681x341.png 681w\" sizes=\"(max-width: 1437px) 100vw, 1437px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">For this tutorial, we are going to create a new plan. So, select the option \u201c Build a new plan\u201d and give a name as you wish.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82685 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_plan_name.png\" alt=\"backup_plan_name\" width=\"1435\" height=\"719\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_plan_name.png 1435w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_plan_name-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_plan_name-1024x513.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_plan_name-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_plan_name-838x420.png 838w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_plan_name-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_plan_name-681x341.png 681w\" sizes=\"(max-width: 1435px) 100vw, 1435px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Now, we need to configure the backup rule. Give a name to the rule. You can either create a new rule or select the default one. I am going to leave the default one for this demo.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82688 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_rule.png\" alt=\"backup_rule\" width=\"1434\" height=\"720\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_rule.png 1434w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_rule-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_rule-1024x514.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_rule-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_rule-837x420.png 837w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_rule-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_rule-681x342.png 681w\" sizes=\"(max-width: 1434px) 100vw, 1434px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Select the retention period and destination region.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82687 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_rule_fields.png\" alt=\"backup_rule_fields\" width=\"1436\" height=\"721\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_rule_fields.png 1436w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_rule_fields-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_rule_fields-1024x514.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_rule_fields-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_rule_fields-837x420.png 837w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_rule_fields-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_rule_fields-681x342.png 681w\" sizes=\"(max-width: 1436px) 100vw, 1436px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Review the settings and click on create plan.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82681 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_plan.png\" alt=\"create_backup_plan\" width=\"1436\" height=\"717\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_plan.png 1436w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_plan-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_plan-1024x511.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_plan-768x383.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_plan-841x420.png 841w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_plan-640x320.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_backup_plan-681x340.png 681w\" sizes=\"(max-width: 1436px) 100vw, 1436px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Once the backup plan is created, we need to assign the resources to the plan.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82689 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_assign_resources.png\" alt=\"backup_assign_resources\" width=\"1434\" height=\"720\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_assign_resources.png 1434w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_assign_resources-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_assign_resources-1024x514.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_assign_resources-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_assign_resources-837x420.png 837w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_assign_resources-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_assign_resources-681x342.png 681w\" sizes=\"(max-width: 1434px) 100vw, 1434px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Click on the Assign Resources.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82691 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/assign_resources.png\" alt=\"assign_resources\" width=\"1434\" height=\"719\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/assign_resources.png 1434w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/assign_resources-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/assign_resources-1024x513.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/assign_resources-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/assign_resources-838x420.png 838w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/assign_resources-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/assign_resources-681x341.png 681w\" sizes=\"(max-width: 1434px) 100vw, 1434px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">We can add the resources by selecting the resource type and resource ID or we can also use tags to select the resources.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82692 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/assign_ebs.png\" alt=\"assign_ebs\" width=\"1439\" height=\"721\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/assign_ebs.png 1439w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/assign_ebs-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/assign_ebs-1024x513.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/assign_ebs-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/assign_ebs-838x420.png 838w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/assign_ebs-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/assign_ebs-681x341.png 681w\" sizes=\"(max-width: 1439px) 100vw, 1439px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">You would be able to see the assigned resource on the dashboard.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82690 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_resource_assigned.png\" alt=\"backup_resource_assigned\" width=\"1437\" height=\"719\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_resource_assigned.png 1437w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_resource_assigned-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_resource_assigned-1024x512.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_resource_assigned-768x384.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_resource_assigned-839x420.png 839w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_resource_assigned-640x320.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/backup_resource_assigned-681x341.png 681w\" sizes=\"(max-width: 1437px) 100vw, 1437px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">We have created the plan and assigned the resource to it, that means our backup is ready now.<\/span><\/p>\n<h4><b>Automate Backup Using Data Lifecycle Manager<\/b><\/h4>\n<p><span style=\"font-weight: 400;\">Amazon Data Lifecycle Manager is a service offered by AWS to manage AWS resource lifecycle which also supports EBS volumes and snapshots. We will see the steps involved to automate EBS backup automation using DLM.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Login to AWS management console and navigate to the EC2 dashboard and click on the \u201cLifecycle Manager\u201d under Elastic Block Store.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82693 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_dashboard.png\" alt=\"dlm_dashboard\" width=\"1437\" height=\"720\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_dashboard.png 1437w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_dashboard-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_dashboard-1024x513.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_dashboard-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_dashboard-838x420.png 838w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_dashboard-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_dashboard-681x341.png 681w\" sizes=\"(max-width: 1437px) 100vw, 1437px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">We can start creating new lifecycle a policy. I have selected the type as EBS snapshot policy.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82695 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_snapshot_policy.png\" alt=\"ebs_snapshot_policy\" width=\"1437\" height=\"718\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_snapshot_policy.png 1437w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_snapshot_policy-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_snapshot_policy-1024x512.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_snapshot_policy-768x384.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_snapshot_policy-841x420.png 841w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_snapshot_policy-640x320.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_snapshot_policy-681x340.png 681w\" sizes=\"(max-width: 1437px) 100vw, 1437px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">The DLM lifecycle policies work by looking at the tags. Tagging the resources is mandatory for the lifecycle policy to work.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82696 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_resource_name.png\" alt=\"dlm_resource_name\" width=\"1435\" height=\"715\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_resource_name.png 1435w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_resource_name-300x149.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_resource_name-1024x510.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_resource_name-768x383.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_resource_name-843x420.png 843w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_resource_name-640x319.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_resource_name-681x339.png 681w\" sizes=\"(max-width: 1435px) 100vw, 1435px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Click on next. On the next page, you will have an option to enter the schedule.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82697 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_policy_schedule.png\" alt=\"dlm_policy_schedule\" width=\"1439\" height=\"720\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_policy_schedule.png 1439w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_policy_schedule-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_policy_schedule-1024x512.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_policy_schedule-768x384.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_policy_schedule-839x420.png 839w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_policy_schedule-640x320.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_policy_schedule-681x341.png 681w\" sizes=\"(max-width: 1439px) 100vw, 1439px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Review the policy settings and click on create policy.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82694 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_create_policy.png\" alt=\"dlm_create_policy\" width=\"1435\" height=\"720\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_create_policy.png 1435w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_create_policy-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_create_policy-1024x514.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_create_policy-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_create_policy-837x420.png 837w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_create_policy-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_create_policy-681x342.png 681w\" sizes=\"(max-width: 1435px) 100vw, 1435px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Once created, you should be able to view the policy on the dashboard.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82698 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_policy_created.png\" alt=\"dlm_policy_created\" width=\"1433\" height=\"720\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_policy_created.png 1433w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_policy_created-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_policy_created-1024x515.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_policy_created-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_policy_created-836x420.png 836w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_policy_created-640x322.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dlm_policy_created-681x342.png 681w\" sizes=\"(max-width: 1433px) 100vw, 1433px\" \/><\/p>\n<h4><b>Automate EBS backup automation using CloudWatch Events<\/b><\/h4>\n<p><span style=\"font-weight: 400;\">Another method to automate taking EBS snapshots is using the AWS CloudWatch Events. As you know that the AWS CloudWatch is a monitoring and management service offered by AWS. We will be using the CloudWatch rule to implement the EBS snapshots creation.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Login to AWS management console and navigate to the CloudWatch dashboard.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Click on Events and select the rules.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82699 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_rule.png\" alt=\"create_rule\" width=\"1436\" height=\"721\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_rule.png 1436w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_rule-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_rule-1024x514.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_rule-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_rule-837x420.png 837w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_rule-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_rule-681x342.png 681w\" sizes=\"(max-width: 1436px) 100vw, 1436px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">We will have two options here. We can either set the rule triggered for every N minutes or we can use the cron expression.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82700 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eventbridge_schedule.png\" alt=\"eventbridge_schedule\" width=\"1433\" height=\"720\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eventbridge_schedule.png 1433w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eventbridge_schedule-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eventbridge_schedule-1024x515.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eventbridge_schedule-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eventbridge_schedule-836x420.png 836w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eventbridge_schedule-640x322.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/eventbridge_schedule-681x342.png 681w\" sizes=\"(max-width: 1433px) 100vw, 1433px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">On the next step, we need to select the target. Our objective for this demo is to create EBS snapshots so select the target as EBS create snapshots.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82701 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/target_ebs.png\" alt=\"target_ebs\" width=\"1436\" height=\"724\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/target_ebs.png 1436w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/target_ebs-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/target_ebs-1024x516.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/target_ebs-768x387.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/target_ebs-833x420.png 833w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/target_ebs-640x323.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/target_ebs-681x343.png 681w\" sizes=\"(max-width: 1436px) 100vw, 1436px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Select the volume ID which we need to take a backup. We are ready to take the snapshots.\u00a0<\/span><\/p>\n<h4>How to restore EC2 from the snapshots?<\/h4>\n<p><span style=\"font-weight: 400;\">We have seen how to take snapshots of the EBS volumes. Now, let&#8217;s see how we can restore the EC2 instances from the snapshots.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">We have the snapshot taken in the previous steps.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82704 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_snap_dash.png\" alt=\"ebs_snap_dash\" width=\"1434\" height=\"716\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_snap_dash.png 1434w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_snap_dash-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_snap_dash-1024x511.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_snap_dash-768x383.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_snap_dash-841x420.png 841w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_snap_dash-640x320.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_snap_dash-681x340.png 681w\" sizes=\"(max-width: 1434px) 100vw, 1434px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Now, we need to create an image from the snapshot. For that, select the snapshot, under actions select the option create image from snapshot.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82709 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image_from-snap.png\" alt=\"create_image_from-snap\" width=\"1432\" height=\"718\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image_from-snap.png 1432w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image_from-snap-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image_from-snap-1024x513.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image_from-snap-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image_from-snap-838x420.png 838w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image_from-snap-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_image_from-snap-681x341.png 681w\" sizes=\"(max-width: 1432px) 100vw, 1432px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">It will prompt you to enter name, description and select the architecture, root device name and virtualization type.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82710 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/snap_create_image.png\" alt=\"snap_create_image\" width=\"1428\" height=\"716\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/snap_create_image.png 1428w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/snap_create_image-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/snap_create_image-1024x513.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/snap_create_image-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/snap_create_image-838x420.png 838w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/snap_create_image-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/snap_create_image-681x341.png 681w\" sizes=\"(max-width: 1428px) 100vw, 1428px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Review the configuration and click on create image. An image will be created in few seconds and will be available in the AMI dashboard.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82711 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ami_created.png\" alt=\"ami_created\" width=\"1430\" height=\"713\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ami_created.png 1430w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ami_created-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ami_created-1024x511.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ami_created-768x383.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ami_created-842x420.png 842w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ami_created-640x319.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ami_created-681x340.png 681w\" sizes=\"(max-width: 1430px) 100vw, 1430px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">To restore the instance, select the AMI and click launch instance from AMI.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82712 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance_ami.png\" alt=\"launch_instance_ami\" width=\"1430\" height=\"717\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance_ami.png 1430w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance_ami-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance_ami-1024x513.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance_ami-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance_ami-838x420.png 838w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance_ami-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/launch_instance_ami-681x341.png 681w\" sizes=\"(max-width: 1430px) 100vw, 1430px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">You will be redirected to the EC2 instance creation page. Repeat the steps and the instance will be restored. <\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82713 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/instance_restore.png\" alt=\"instance_restore\" width=\"1431\" height=\"715\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/instance_restore.png 1431w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/instance_restore-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/instance_restore-1024x512.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/instance_restore-768x384.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/instance_restore-841x420.png 841w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/instance_restore-640x320.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/instance_restore-681x340.png 681w\" sizes=\"(max-width: 1431px) 100vw, 1431px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">In this tutorial, we have learnt how we can automate the EBS snapshots using different methods and we have used AWS Data Lifecycle Manager, AWS Backup and CloudWatch Events. Hope this was helpful.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"How_to_resize_EBS_Volumes_and_extend_the_filesystem\"><\/span>How to resize EBS Volumes and extend the filesystem?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">As we know that the Cloud platforms are known for elasticity. This applies to computing power as well as storage capacity.When it comes to AWS EC2 instances, Elastic Block Store (EBS) is the mostly used storage type and backbone of EC2 instances. EBS offers high availability as well as high durability. AWS provides an easy way to increase the EBS volumes without even restarting the instance.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In this tutorial, we will see how to extend the EBS volume that is attached to an EC2 instance without having a downtime.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Please note that it is always recommended to take a snapshot of the volume before making any changes to it. We will be able to resize the volume without this step but in order to avoid any kind of data loss, take a snapshot of the volume and continue with the following steps.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Resize_EBS_Volume_on_AWS_console\"><\/span>Resize EBS Volume on AWS console<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">For this tutorial, let\u2019s assume that the application is running on an EC2 instance and it has a small volume size of 8GB attached to it. This is a linux instance which is running on Ubuntu OS.\u00a0 Login to the AWS management console and navigate to the EC2 dashboard.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82750 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ec2.png\" alt=\"ec2_dashboard\" width=\"1435\" height=\"720\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ec2.png 1435w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ec2-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ec2-1024x514.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ec2-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ec2-837x420.png 837w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ec2-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ec2-681x342.png 681w\" sizes=\"(max-width: 1435px) 100vw, 1435px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">We have an instance named as whiz-demo and an EBS volume named as EBS-resize-demo.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82752 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs.png\" alt=\"ebs_dashboard\" width=\"1433\" height=\"718\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs.png 1433w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs-1024x513.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs-838x420.png 838w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs-681x341.png 681w\" sizes=\"(max-width: 1433px) 100vw, 1433px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Select the volume and click on \u201cModify Volume\u201d under Actions.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82753 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify.png\" alt=\"ebs_modify\" width=\"1436\" height=\"722\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify.png 1436w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify-1024x515.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify-835x420.png 835w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify-640x322.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify-681x342.png 681w\" sizes=\"(max-width: 1436px) 100vw, 1436px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">On the next page, you will have an option to change the volume size and volume type. The type I have created for this demo is general purpose SSG (gp2), if needed we can change the type as well. For this demo, I am keeping it as gp2 and just changing the volume size.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82754 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify_form.png\" alt=\"ebs_modify_form\" width=\"1434\" height=\"719\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify_form.png 1434w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify_form-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify_form-1024x513.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify_form-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify_form-838x420.png 838w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify_form-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify_form-681x341.png 681w\" sizes=\"(max-width: 1434px) 100vw, 1434px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">You will get a confirmation popup to modify the changes.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82755 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify_confirm.png\" alt=\"ebs_modify_confirm\" width=\"1435\" height=\"721\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify_confirm.png 1435w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify_confirm-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify_confirm-1024x514.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify_confirm-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify_confirm-836x420.png 836w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify_confirm-640x322.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_modify_confirm-681x342.png 681w\" sizes=\"(max-width: 1435px) 100vw, 1435px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">You can now see that the volume size has been changed from 8GB to 15 GB.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82756 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_resized.png\" alt=\"ebs_resized\" width=\"1436\" height=\"720\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_resized.png 1436w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_resized-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_resized-1024x513.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_resized-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_resized-838x420.png 838w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_resized-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_resized-681x341.png 681w\" sizes=\"(max-width: 1436px) 100vw, 1436px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">However, the volume state will show as in-use-optimizing. The volume will start optimizing and it will take a few minutes to be completed depending on the size.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82757 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_vol_state.png\" alt=\"ebs_vol_state\" width=\"1438\" height=\"725\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_vol_state.png 1438w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_vol_state-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_vol_state-1024x516.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_vol_state-768x387.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_vol_state-833x420.png 833w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_vol_state-640x323.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_vol_state-681x343.png 681w\" sizes=\"(max-width: 1438px) 100vw, 1438px\" \/><\/p>\n<h4>Resize EBS Volume on EC2 Linux instance<\/h4>\n<p><span style=\"font-weight: 400;\">Modifying the volume size on AWS console will not directly change the volume size in the instance. Once the volume size has changed and the state becomes in-use, we need to extend the file system on the EC2 instance. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Lets extend the volume on the EC2 Linux instance. Connect to the EC2 instance via SSH with root privileges.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Once logged in, check the partition size by running the command \u201c<\/span><b>lsblk<\/b><span style=\"font-weight: 400;\">\u201d.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82758 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/lsblk.png\" alt=\"lsblk cmd\" width=\"857\" height=\"415\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/lsblk.png 857w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/lsblk-300x145.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/lsblk-768x372.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/lsblk-640x310.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/lsblk-681x330.png 681w\" sizes=\"(max-width: 857px) 100vw, 857px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">The above screenshot shows that the volume size has been extended to 15GB but the partition xvda1 has the old value. To allocate the newly extended size, we need to run the <\/span><b>growpart <\/b><span style=\"font-weight: 400;\">command. <\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82760 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/growpart.png\" alt=\"growpart cmd\" width=\"855\" height=\"415\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/growpart.png 855w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/growpart-300x146.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/growpart-768x373.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/growpart-640x311.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/growpart-681x331.png 681w\" sizes=\"(max-width: 855px) 100vw, 855px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Now the partition has been changed to match the volume size.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82761 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/lsblk-1.png\" alt=\"lsblk cmd\" width=\"854\" height=\"411\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/lsblk-1.png 854w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/lsblk-1-300x144.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/lsblk-1-768x370.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/lsblk-1-640x308.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/lsblk-1-681x328.png 681w\" sizes=\"(max-width: 854px) 100vw, 854px\" \/><\/p>\n<p><b>Checking the file system<\/b><\/p>\n<p><span style=\"font-weight: 400;\">To check the disk sizes, run the command df -h.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82759 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/df-cmd.png\" alt=\"df cmd\" width=\"852\" height=\"417\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/df-cmd.png 852w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/df-cmd-300x147.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/df-cmd-768x376.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/df-cmd-640x313.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/df-cmd-681x333.png 681w\" sizes=\"(max-width: 852px) 100vw, 852px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">In the above screenshot, the size of the root volume still shows as 7.6GB which is the older value.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Running the command <\/span><b>file -s \/dev\/xvd* <\/b><span style=\"font-weight: 400;\">will show the current filesystem.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82762 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/check_filesystem_cmd.png\" alt=\"check_filesystem_cmd\" width=\"856\" height=\"408\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/check_filesystem_cmd.png 856w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/check_filesystem_cmd-300x143.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/check_filesystem_cmd-768x366.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/check_filesystem_cmd-640x305.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/check_filesystem_cmd-681x325.png 681w\" sizes=\"(max-width: 856px) 100vw, 856px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">In our case, the file system used in <\/span><b>ext4<\/b><span style=\"font-weight: 400;\">. Run <\/span><b>resize2fs \/dev\/xvda1 <\/b><span style=\"font-weight: 400;\">to resize the disk.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82763 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/resize2fs.png\" alt=\"resize2fs\" width=\"858\" height=\"369\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/resize2fs.png 858w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/resize2fs-300x129.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/resize2fs-768x330.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/resize2fs-640x275.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/resize2fs-681x293.png 681w\" sizes=\"(max-width: 858px) 100vw, 858px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">You can now see that the root disk size has been changed to 15 GB.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82764 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dfh-cmd.png\" alt=\"dfh cmd\" width=\"857\" height=\"395\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dfh-cmd.png 857w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dfh-cmd-300x138.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dfh-cmd-768x354.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dfh-cmd-640x295.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/dfh-cmd-681x314.png 681w\" sizes=\"(max-width: 857px) 100vw, 857px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">The volume is now resized and ready for use. Restarting an instance will do this for you automatically but there will be a small downtime. <\/span><\/p>\n<h4>Resize EBS Volume on EC2 Windows Instance<\/h4>\n<p><span style=\"font-weight: 400;\">Now, we will see how to resize the volume that is attached to the windows instance. We have an EBS volume named as whiz-demo-windows-ebs with 30GB size. <\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82766 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_windows.png\" alt=\"ebs_windows\" width=\"1432\" height=\"723\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_windows.png 1432w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_windows-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_windows-1024x517.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_windows-768x388.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_windows-832x420.png 832w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_windows-640x323.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_windows-681x344.png 681w\" sizes=\"(max-width: 1432px) 100vw, 1432px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Now, go ahead and modify the volume size from 30GB to 40GB.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82767 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/increase_ebs.png\" alt=\"increase_ebs\" width=\"1435\" height=\"693\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/increase_ebs.png 1435w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/increase_ebs-300x145.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/increase_ebs-1024x495.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/increase_ebs-768x371.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/increase_ebs-870x420.png 870w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/increase_ebs-640x309.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/increase_ebs-681x329.png 681w\" sizes=\"(max-width: 1435px) 100vw, 1435px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Login to your Windows instance using RDP and open the disk management. You can see that the volume size is 30GB.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82768 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/disk_mngmnt.png\" alt=\"disk_mngmnt\" width=\"749\" height=\"592\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/disk_mngmnt.png 749w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/disk_mngmnt-300x237.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/disk_mngmnt-531x420.png 531w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/disk_mngmnt-640x506.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/disk_mngmnt-681x538.png 681w\" sizes=\"(max-width: 749px) 100vw, 749px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Click on the action button and select rescan disks. Unallocated space will be visible here.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82769 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/scan_space.png\" alt=\"scan_space\" width=\"749\" height=\"591\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/scan_space.png 749w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/scan_space-300x237.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/scan_space-532x420.png 532w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/scan_space-640x505.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/scan_space-681x537.png 681w\" sizes=\"(max-width: 749px) 100vw, 749px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">To add the unallocated space to the existing disk, right click on the disk and click on extend volume.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82770 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/extend_volume.png\" alt=\"extend_volume\" width=\"889\" height=\"726\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/extend_volume.png 889w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/extend_volume-300x245.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/extend_volume-768x627.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/extend_volume-514x420.png 514w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/extend_volume-640x523.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/extend_volume-681x556.png 681w\" sizes=\"(max-width: 889px) 100vw, 889px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">On the next page, you will have an option to enter the amount of disk space to be extended.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82771 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/extend_wizard.png\" alt=\"extend_wizard\" width=\"748\" height=\"593\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/extend_wizard.png 748w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/extend_wizard-300x238.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/extend_wizard-530x420.png 530w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/extend_wizard-640x507.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/extend_wizard-681x540.png 681w\" sizes=\"(max-width: 748px) 100vw, 748px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Enter the desired amount and click on next. You should be able to see the updated disk space.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82772 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/disk_extended.png\" alt=\"disk_extended\" width=\"878\" height=\"614\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/disk_extended.png 878w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/disk_extended-300x210.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/disk_extended-768x537.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/disk_extended-601x420.png 601w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/disk_extended-640x448.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/disk_extended-681x476.png 681w\" sizes=\"(max-width: 878px) 100vw, 878px\" \/><\/p>\n<h4><b>How to shrink EBS Volume?<\/b><\/h4>\n<p><span style=\"font-weight: 400;\">EBS volume size can only be increased and unfortunately AWS does not allow to reduce the size. However this can be achieved by creating a new volume and attaching it to the instance.<\/span><\/p>\n<h4><b>Mount an EBS volume to EC2 linux instance<\/b><\/h4>\n<p><span style=\"font-weight: 400;\">AWS allows us to add more than one EBS volume to an EC2 instance. In this section, we will see how to attach more than one EBS volume to an EC2 instance. Let us see how to do it.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Login to the AWS console and navigate to the EC2 dashboard. Create a new EBS volume.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82773 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_ebs_vol.png\" alt=\"create_ebs_vol\" width=\"1437\" height=\"721\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_ebs_vol.png 1437w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_ebs_vol-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_ebs_vol-1024x514.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_ebs_vol-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_ebs_vol-837x420.png 837w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_ebs_vol-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_ebs_vol-681x342.png 681w\" sizes=\"(max-width: 1437px) 100vw, 1437px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Once created, go to the EC2 dashboard and select the EBS volume which we have created. Under actions, click on the attach volume option.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82782 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/attach_volume.png\" alt=\"attach_volume\" width=\"1427\" height=\"712\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/attach_volume.png 1427w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/attach_volume-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/attach_volume-1024x511.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/attach_volume-768x383.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/attach_volume-842x420.png 842w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/attach_volume-640x319.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/attach_volume-681x340.png 681w\" sizes=\"(max-width: 1427px) 100vw, 1427px\" \/><\/p>\n<h4><b>Mount the EBS Volume<\/b><\/h4>\n<p><span style=\"font-weight: 400;\">To mount the newly created volume, we need to login to the instance. Login using SSH and run lsblk command to view the available disks.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82784 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_lsblk.png\" alt=\"ebs_lsblk\" width=\"911\" height=\"451\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_lsblk.png 911w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_lsblk-300x149.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_lsblk-768x380.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_lsblk-848x420.png 848w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_lsblk-640x317.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_lsblk-681x337.png 681w\" sizes=\"(max-width: 911px) 100vw, 911px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">To make sure there is no data available in the newly created disk run the command <\/span><b>sudo file -s \/dev\/xvdf <\/b><span style=\"font-weight: 400;\">(we have given the name as xvdf while attaching to the instance).<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82785 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/check_data.png\" alt=\"check_data\" width=\"907\" height=\"475\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/check_data.png 907w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/check_data-300x157.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/check_data-768x402.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/check_data-802x420.png 802w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/check_data-640x335.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/check_data-681x357.png 681w\" sizes=\"(max-width: 907px) 100vw, 907px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">The output of \/dev\/xvdf:data confirms that there is no data available in this disk. Now, we need to format the volume with the <\/span><b>ext4<\/b><span style=\"font-weight: 400;\"> file system. To do that run the following command.\u00a0<\/span><\/p>\n<p><b>sudo mkfs -t ext4 \/dev\/xvdf<\/b><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82786 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/format_ext4.png\" alt=\"format_ext4\" width=\"911\" height=\"429\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/format_ext4.png 911w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/format_ext4-300x141.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/format_ext4-768x362.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/format_ext4-892x420.png 892w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/format_ext4-640x301.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/format_ext4-681x321.png 681w\" sizes=\"(max-width: 911px) 100vw, 911px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Create a folder and mount the volume.\u00a0<\/span><\/p>\n<p><b>sudo mkdir \/newdata<\/b><\/p>\n<p><b>sudo mount \/dev\/xvdf \/newdata<\/b><\/p>\n<p><span style=\"font-weight: 400;\">To check the volume status run the df -h command.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82787 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_mounted.png\" alt=\"ebs_mounted\" width=\"909\" height=\"425\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_mounted.png 909w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_mounted-300x140.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_mounted-768x359.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_mounted-898x420.png 898w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_mounted-640x299.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_mounted-681x318.png 681w\" sizes=\"(max-width: 909px) 100vw, 909px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">We can see that the volume xvdf is mounted. To unmount the disk, run the command unmount \/dev\/xvdf. <\/span><\/p>\n<h4><b>Mount an EBS volume to multiple instances<\/b><\/h4>\n<p><span style=\"font-weight: 400;\">If we have a scenario where multiple instances need to read or write to the same storage then this can be achieved using EBS multi-attach functionality. AWS allows the EBS volume to be attached into more than one instance. This option is available for the provisioned IOPS EBS type.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If you select the type as provisioned IOPS, you will get an option to enable the multi attach feature.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><img decoding=\"async\" class=\"aligncenter wp-image-82788 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_multi_attach.png\" alt=\"ebs_multi_attach\" width=\"1436\" height=\"717\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_multi_attach.png 1436w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_multi_attach-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_multi_attach-1024x511.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_multi_attach-768x383.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_multi_attach-841x420.png 841w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_multi_attach-640x320.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/ebs_multi_attach-681x340.png 681w\" sizes=\"(max-width: 1436px) 100vw, 1436px\" \/><\/span><\/p>\n<p><span style=\"font-weight: 400;\">Maximum of 27 EBS volumes can be attached to a single instance. This may vary based on the instance type.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In this tutorial, we have seen how to modify EBS volume size on AWS console and extend the attached disk to Linux instance and Windows instance. Hope you were able to follow along and learn the same.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"A_Beginners_Guide_to_Amazon_RDS\"><\/span>A Beginners Guide to Amazon RDS<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Amazon Relational Database Service (RDS) is a service offered by AWS to set up a relational database in the AWS Cloud. RDS makes it easier to set up, operate and scale the relation databases on AWS. With a few clicks, we will be able to spin up new database instances. In this article, let&#8217;s discuss more about the RDS and see the steps involved in creating a database.<\/span><\/p>\n<h4>Databases Supported by Amazon RDS<\/h4>\n<p><span style=\"font-weight: 400;\">RDS itself is not a database and it\u2019s a service that manages the databases. The following are the database engines supported by RDS.\u00a0<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><b>Amazon Aurora:<\/b><span style=\"font-weight: 400;\"> It\u2019s an Amazon\u2019s own relational database engine and Amazon claims Aurora is 5x faster than the RDS MySQL instance. Aurora is compatible with MySQL and PostgreSQL<\/span><\/li>\n<li><b>MySQL: <\/b><span style=\"font-weight: 400;\">It\u2019s one of the widely used open source databases which uses SQL to access the data.<\/span><\/li>\n<li><b>PostgreSQL: <\/b><span style=\"font-weight: 400;\">It\u2019s another popular open source database engine.<\/span><\/li>\n<li><b>MariaDB: <\/b><span style=\"font-weight: 400;\">As per Wikipedia, MariaDB is a community developed fork of the MySQL RDBMS.\u00a0<\/span><\/li>\n<li><b>Oracle DB: <\/b><span style=\"font-weight: 400;\">It is an object relational database management system by Oracle.\u00a0<\/span><\/li>\n<li><b>SQL Server: <\/b><span style=\"font-weight: 400;\">It\u2019s a relational database management system created by Microsoft.\u00a0<\/span><\/li>\n<\/ul>\n<h4><span style=\"font-weight: 400;\">Components of RDS<\/span><\/h4>\n<p><span style=\"font-weight: 400;\">Let us have a look into the major components of the RDS. We will see one by one in detail.<\/span><\/p>\n<p><b>DB Instances<\/b><\/p>\n<p><span style=\"font-weight: 400;\">This is an isolated database environment in the AWS cloud. A DB instance can have multiple databases and can be accessed using the same tools which are used to access standalone databases. The capacity of the database instance depends on the instance class. There are three types of instances:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Standard Instances (m3, m4)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Memory Optimized (r3)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Burstable Instances (t2)<\/span><\/p>\n<p><b>Regions and AZ<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Regions are physical data centers isolated from each other. Each region can have more than one availability zone. Availability zone is an isolated physical location within the region. In case of one AZ failure, another AZ will be active in that region.\u00a0<\/span><\/p>\n<p><b>Security Groups<\/b><\/p>\n<p><span style=\"font-weight: 400;\">A security group acts as a firewall and controls the access to database instances. We can specify the range of IP addresses or EC2 instances which can access the database instance.\u00a0<\/span><\/p>\n<p><b>DB Parameter Groups<\/b><\/p>\n<p><span style=\"font-weight: 400;\">DB parameter group contains the configuration values that can be applied to one or more instances. If not applied, a default parameter group with default values will be assigned.\u00a0<\/span><\/p>\n<p><b>DB Option Groups<\/b><\/p>\n<p><span style=\"font-weight: 400;\">For simplifying the management, some DB engines offer some tools and DB Option Group is used to utilize them.\u00a0<\/span><\/p>\n<h4><span style=\"font-weight: 400;\">Features of Amazon RDS<\/span><\/h4>\n<p><span style=\"font-weight: 400;\">We have seen what RDS and its components, let us see some of the features and advantages of RDS.\u00a0<\/span><\/p>\n<p><b>Minimized administrative tasks<\/b><\/p>\n<p><span style=\"font-weight: 400;\">RDS makes the initiation and deployment of databases easier. It can be accessed from AWS console, <a href=\"https:\/\/www.whizlabs.com\/blog\/install-aws-cli\/\">AWS CLI<\/a> and API calls. Security patches and other updates are taken care of by RDS.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">RDS handles the backup activities for you. There are two options available to backup. An automated backup where we set a time to backup the instance. DB instances which can be taken manually.<\/span><\/p>\n<p><b>Scalability<\/b><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Scaling the compute and storage resources of the database can be done in a few clicks with no downtime.\u00a0<\/span><\/p>\n<p><b>High Availability and Durability<\/b><\/p>\n<p><span style=\"font-weight: 400;\">RDS offers a point in time recovery feature. DB snapshots can be taken any time and can be stored in S3. RDS provides a multi AZ feature, which provides high availability. RDS also supports read replicas. Snapshots are created from the source database and the read traffic is distributed to the raad instance. Updates to the instances are applied in a maintenance window that can be drained during creation of the instance.\u00a0<\/span><\/p>\n<p><b>Security<\/b><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">RDS integrates with other AWS services like IAM and KMS. Databases can be encrypted with AWS Key Management Services (KMS). Using Amazon\u2019s VPC and subnets features, we can run our databases on virtually isolated networks and set up firewall.<\/span><\/p>\n<p><b>Cost Efficient\u00a0<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Like other AWS services, RDS also comes with a pay as you go pricing model. We will be paying only for the resource which we use and no upfront payment is needed. RDS also pricing another purchase option \u201cReserved Instances\u201d which comes with a discounted price when we commit the usage for 1 or 3 years. RDS is billed based on the following parameters:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Instance type<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Storage<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Running time<\/span><\/p>\n<p><span style=\"font-weight: 400;\">I\/O requests per month<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Data transfer<\/span><\/p>\n<p><b>Management<\/b><\/p>\n<p><span style=\"font-weight: 400;\">RDS provides various operative metrics and integrates with AWS CloudWatch. With the help of SNS, RDS can trigger notifications to the users. This makes the daily operations and monitoring easier.<\/span><\/p>\n<h4><span style=\"font-weight: 400;\">Hands-On: Creating RDS MySQL Instance<\/span><\/h4>\n<p><span style=\"font-weight: 400;\">Let us go ahead and create an instance in the AWS console. Login to AWS management console and navigate to RDS under databases.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82795 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/navigate_rds.png\" alt=\"navigate_rds\" width=\"1433\" height=\"718\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/navigate_rds.png 1433w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/navigate_rds-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/navigate_rds-1024x513.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/navigate_rds-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/navigate_rds-838x420.png 838w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/navigate_rds-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/navigate_rds-681x341.png 681w\" sizes=\"(max-width: 1433px) 100vw, 1433px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Click on the create database button, you will be prompted to select the database engine and version.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82796 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_rds.png\" alt=\"create_rds\" width=\"1430\" height=\"715\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_rds.png 1430w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_rds-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_rds-1024x512.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_rds-768x384.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_rds-840x420.png 840w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_rds-640x320.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/create_rds-681x341.png 681w\" sizes=\"(max-width: 1430px) 100vw, 1430px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">For this demonstration, I will be selecting the MySQL DB engine.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82798 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_engine.png\" alt=\"select_engine\" width=\"1433\" height=\"717\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_engine.png 1433w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_engine-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_engine-1024x512.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_engine-768x384.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_engine-839x420.png 839w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_engine-640x320.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/select_engine-681x341.png 681w\" sizes=\"(max-width: 1433px) 100vw, 1433px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">In the templates section, select the option Dev\/test as we are creating this instance for demo purpose. <\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82799 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_db_template.png\" alt=\"rds_db_template\" width=\"1423\" height=\"720\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_db_template.png 1423w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_db_template-300x152.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_db_template-1024x518.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_db_template-768x389.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_db_template-830x420.png 830w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_db_template-640x324.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_db_template-681x345.png 681w\" sizes=\"(max-width: 1423px) 100vw, 1423px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">You will have an option to select Multi-AZ instance or single instance. I have selected a single instance for this demo.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The next step is to enter database name, master username and password.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82800 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_pwd.png\" alt=\"db_pwd\" width=\"1430\" height=\"718\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_pwd.png 1430w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_pwd-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_pwd-1024x514.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_pwd-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_pwd-836x420.png 836w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_pwd-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_pwd-681x342.png 681w\" sizes=\"(max-width: 1430px) 100vw, 1430px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">The next step is to select the instance type. There are 3 instance classes available. Standard, memory optimized and burstable. Select the instance type and storage type.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82801 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_instance_type.png\" alt=\"rds_instance_type\" width=\"1431\" height=\"712\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_instance_type.png 1431w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_instance_type-300x149.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_instance_type-1024x509.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_instance_type-768x382.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_instance_type-844x420.png 844w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_instance_type-640x318.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_instance_type-681x339.png 681w\" sizes=\"(max-width: 1431px) 100vw, 1431px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">You have to select the VPC and security group as well. Review the settings and click on create.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82802 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_vpc.png\" alt=\"rds_vpc\" width=\"1427\" height=\"716\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_vpc.png 1427w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_vpc-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_vpc-1024x514.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_vpc-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_vpc-837x420.png 837w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_vpc-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_vpc-681x342.png 681w\" sizes=\"(max-width: 1427px) 100vw, 1427px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">That\u2019s it. Within a few seconds, your RDS instance will be created.\u00a0<\/span><\/p>\n<h4><span style=\"font-weight: 400;\">Hands-On: Create RDS Instance from AWS CLI<\/span><\/h4>\n<p><span style=\"font-weight: 400;\">We have created the DB instance from the AWS console. Let us also see how we can create an instance from AWS CLI.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">I assume that you have done the AWS CLI installation and entered AWS credentials already. If not, please create an IAM user and have the access key and secret key ready. Run the command <\/span><b>aws configure<\/b><span style=\"font-weight: 400;\"> to add your credentials.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82803 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws_config_cmd.png\" alt=\"aws_config_cmd\" width=\"911\" height=\"461\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws_config_cmd.png 911w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws_config_cmd-300x152.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws_config_cmd-768x389.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws_config_cmd-830x420.png 830w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws_config_cmd-640x324.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws_config_cmd-681x345.png 681w\" sizes=\"(max-width: 911px) 100vw, 911px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">While creating DB instances using AWS console, we have entered many parameters like database engine, instance type, VPC, security group, storage type, multi-az support, etc. We need to provide these inputs while creating the instance using CLI as well.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&#8211;db-instance-identifier\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&#8211;db-instance-class<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&#8211;engine<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&#8211;engine-version<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&#8211;master-username<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&#8211;master-user-password<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&#8211;allocated-storage<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Refer to the <\/span><a href=\"https:\/\/docs.aws.amazon.com\/cli\/latest\/reference\/rds\/create-db-instance.html\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">AWS documentation<\/span><\/a><span style=\"font-weight: 400;\"> for the complete list of parameters.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The command to create RDS instance is: <\/span><b>create-db-instance &lt;parameters&gt;<\/b><\/p>\n<p><span style=\"font-weight: 400;\">In our case, we will create a MySQL engine.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Let us run the create command along with the configuration parameters.<\/span><\/p>\n<p><b>aws rds create-db-instance &#8211;db-instance-identifier db-whizdemo &#8211;db-instance-class db.t3.micro &#8211;engine mysql &#8211;master-user-password 12345678 &#8211;master-username demo &#8211;allocated-storage 20\u00a0<\/b><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82804 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_created.png\" alt=\"db_created\" width=\"1057\" height=\"462\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_created.png 1057w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_created-300x131.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_created-1024x448.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_created-768x336.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_created-961x420.png 961w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_created-640x280.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/db_created-681x298.png 681w\" sizes=\"(max-width: 1057px) 100vw, 1057px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">You will get an output in JSON format on a successful request.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82805 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/json.png\" alt=\"json\" width=\"1047\" height=\"456\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/json.png 1047w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/json-300x131.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/json-1024x446.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/json-768x334.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/json-964x420.png 964w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/json-640x279.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/json-681x297.png 681w\" sizes=\"(max-width: 1047px) 100vw, 1047px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">You can see on the console that a new instance has been created.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82794 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_dash.png\" alt=\"rds_dash\" width=\"1428\" height=\"709\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_dash.png 1428w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_dash-300x149.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_dash-1024x508.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_dash-768x381.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_dash-846x420.png 846w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_dash-640x318.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_dash-681x338.png 681w\" sizes=\"(max-width: 1428px) 100vw, 1428px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">We have now successfully created the RDS DB instance using AWS CLI commands.\u00a0<\/span><\/p>\n<h4>RDS Read Replica<\/h4>\n<p><span style=\"font-weight: 400;\">We have seen that the read replica is one of the features of RDS. As the name says, it\u2019s an asynchronous copy of the db instance. Read replicas can be created in the same or different region. All the database engines supported by RDS will support this feature. <\/span><\/p>\n<p><b>Advantages of Read Replicas<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Some of the advantages of using read replicas are:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Read replica serves all the read requests received to the source database. Since all the read queries are handled by the replicas, it increases the overall performance of the RDS. Also, replicas can be created in different regions, it will decrease the lag and increase the performance.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">In case of hardware failure, RDS allows us to use the replica of the affected database to be used as a standalone database.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">When we create a replica, RDS encrypts the data with a public key by default.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">We can create upto 5 read replicas of a database. It is also possible to create a replica of read replica.<\/span><\/li>\n<\/ul>\n<p><b>Create Read Replica for the RDS instance<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Let us go ahead and create a replica for the DB instance we have created in the previous step.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Navigate to the RDS on the AWS console and click on the databases.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82794 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_dash.png\" alt=\"rds_dash\" width=\"1428\" height=\"709\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_dash.png 1428w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_dash-300x149.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_dash-1024x508.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_dash-768x381.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_dash-846x420.png 846w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_dash-640x318.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_dash-681x338.png 681w\" sizes=\"(max-width: 1428px) 100vw, 1428px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Select the database for which you want to create a read replica. In our case, I will select the one which we have created in previous steps. Under actions, click on the create read replica. <\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82806 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_create_replica.png\" alt=\"rds_create_replica\" width=\"1431\" height=\"718\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_create_replica.png 1431w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_create_replica-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_create_replica-1024x514.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_create_replica-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_create_replica-837x420.png 837w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_create_replica-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_create_replica-681x342.png 681w\" sizes=\"(max-width: 1431px) 100vw, 1431px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">On the next screen, you will get options to select the instance class, region, VPC, security group, etc.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82807 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_config.png\" alt=\"replica_config\" width=\"1432\" height=\"716\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_config.png 1432w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_config-300x150.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_config-1024x512.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_config-768x384.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_config-840x420.png 840w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_config-640x320.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_config-681x341.png 681w\" sizes=\"(max-width: 1432px) 100vw, 1432px\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82808 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_replica_conf.png\" alt=\"rds_replica_conf\" width=\"1431\" height=\"718\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_replica_conf.png 1431w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_replica_conf-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_replica_conf-1024x514.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_replica_conf-768x385.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_replica_conf-837x420.png 837w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_replica_conf-640x321.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/rds_replica_conf-681x342.png 681w\" sizes=\"(max-width: 1431px) 100vw, 1431px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Under the settings, you need to select the db instance to add it as a read replica source.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82809 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_source.png\" alt=\"replica_source\" width=\"1433\" height=\"712\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_source.png 1433w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_source-300x149.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_source-1024x509.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_source-768x382.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_source-845x420.png 845w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_source-640x318.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_source-681x338.png 681w\" sizes=\"(max-width: 1433px) 100vw, 1433px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Review the settings and click on create read replica.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82810 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_review.png\" alt=\"replica_review\" width=\"1433\" height=\"720\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_review.png 1433w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_review-300x151.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_review-1024x515.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_review-768x386.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_review-836x420.png 836w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_review-640x322.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/replica_review-681x342.png 681w\" sizes=\"(max-width: 1433px) 100vw, 1433px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">That\u2019s it. We have created a read replica of the database.\u00a0<\/span><\/p>\n<h4><span style=\"font-weight: 400;\">Difference between Multi AZ and Read Replica in RDS<\/span><\/h4>\n<p><span style=\"font-weight: 400;\">We have seen two different features of Amazon RDS. The Multi AZ and Read replica. Both features copy the source database but in a different nature or for a different purpose.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Multi AZ deployments enhance the availability of database instances within a region. In this case, the database will be synchronously replicated to the standby instance. In case of hardware failure, RDS performs an automatic fail over to the standby instance so that the application will not be disrupted.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Replication to a standby instance is synchronous and the endpoint to the standby instance in the case of failover will remain the same.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">RDS Read Replica allows us to create a read-only copy of the instance in the same or different region. Write requests will be served from the main database and only read requests will be served from the read replica database. Updates made to the source database will be asynchronous copies to the replica instance.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Read replica decreased the load on primary instances by handling the read requests. Read replicas can be created within Availability Zone, cross-AZ or cross-region.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In the case of hardware failures, read replicas can be promoted as standalone databases manually.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Read replicas with Multi AZ can be used as a disaster recovery strategy.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_is_Amazon_S3\"><\/span>What is Amazon S3?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\"><a href=\"https:\/\/www.whizlabs.com\/blog\/aws-s3\/\" target=\"_blank\" rel=\"noopener\">Amazon Simple Storage Service <\/a>(Amazon S3) refers to an object storage service that offers data availability, scalability, security, and performance. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Customers from various different industries and of various sizes could make use of Amazon S3 encryption for the storage and protection of any amount of data to be used in websites, mobile applications, IoT devices, enterprise applications, big data analytics, archive, backup and restore, and data lakes.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Amazon S3 offers management features that help you with the organization, optimization, and configuration of access to your data required to meet your business, compliance, and organizational requirements.<br \/>\n<\/span><\/p>\n<blockquote>\n<p class=\"entry-title\">Know More: <a href=\"https:\/\/www.whizlabs.com\/blog\/aws-training\/\" target=\"_blank\" rel=\"noopener\">AMAZON WEB SERVICES (AWS)<\/a> Beginner&#8217;s Guide<\/p>\n<\/blockquote>\n<h4>Amazon S3 (AWS) Buckets and Objects<\/h4>\n<p><span style=\"font-weight: 400;\">A <strong>bucket<\/strong> is a container for objects. You can store numerous objects in a bucket.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">An <strong>object<\/strong> is any file and the associated metadata that describes it. Each object is identified using a unique key, assigned by the user.<\/span><\/p>\n<h4>How do you store an object on Amazon S3?<\/h4>\n<p><span style=\"font-weight: 400;\">To store an object in Amazon S3, you will have to create a bucket and then upload the object to the bucket. The bucket carrying the object allows you to open, download, and move the object. When the bucket or object is no longer needed, you can simply clean up your resources.<\/span><\/p>\n<h4>What is S3 Encryption?<\/h4>\n<p><span style=\"font-weight: 400;\"><img decoding=\"async\" class=\"alignleft wp-image-84074\" title=\"AWS Certified Solution Architect Associate\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/08\/aws-s3-encryption.webp\" alt=\"aws s3 encryption\" width=\"134\" height=\"134\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/08\/aws-s3-encryption.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/08\/aws-s3-encryption-150x150.webp 150w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/08\/aws-s3-encryption-250x250.webp 250w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/08\/aws-s3-encryption-96x96.webp 96w\" sizes=\"(max-width: 134px) 100vw, 134px\" \/>In simple words, it means protecting the data-in-transit and data-at-rest while it travels to and from S3, and also when it is resting on disks in S3 data centers.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">S3 Encryption encrypts an object before saving it to the disk and decrypts it when the object is downloaded. This is done when you are using Server-Side Encryption and the process is performed by Amazon S3.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-84068 size-full\" title=\"Amazon s3 encryption\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/08\/Amazon-s3-encryption.webp\" alt=\"Amazon s3 encryption\" width=\"856\" height=\"482\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/08\/Amazon-s3-encryption.webp 856w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/08\/Amazon-s3-encryption-300x169.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/08\/Amazon-s3-encryption-768x432.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/08\/Amazon-s3-encryption-746x420.webp 746w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/08\/Amazon-s3-encryption-640x360.webp 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/08\/Amazon-s3-encryption-681x383.webp 681w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/08\/Amazon-s3-encryption-150x84.webp 150w\" sizes=\"(max-width: 856px) 100vw, 856px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">To interact with KMS, your Lambda function or S3 application uses encrypted data, a data key, and an encrypted data key.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You don\u2019t encrypt S3 or the entire <a href=\"https:\/\/www.whizlabs.com\/blog\/create-a-lifecycle-policy-for-an-s3-bucket\/\" target=\"_blank\" rel=\"noopener\">S3 bucket<\/a>, but only encrypt the data at the object level. It uses Envelope Encryption to protect the data at rest. Here, each object is encrypted using a unique key, and then the key itself is encrypted with a Master Key.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You protect your data in transit with the help of<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Secure Socket Layer(SSL)\/Transport Layer Security(TLS) or Client-side encryption. Data at rest gets protected through<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Server-side encryption that uses SSE-KMS, SSE-C, and SSE-S3<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Client-side encryption<\/span><\/li>\n<\/ul>\n<p><b>Server-side encryption<\/b><span style=\"font-weight: 400;\"> refers to protecting data-at-rest. It is responsible only for the encryption of object data and not its metadata.<\/span><\/p>\n<p><b>For <a href=\"https:\/\/www.whizlabs.com\/blog\/s3-server-side-encryption\/\" target=\"_blank\" rel=\"noopener\">SSE-S3 server-side encryption<\/a> with S3 managed keys: <\/b><span style=\"font-weight: 400;\">Here, each object is encrypted with a unique key. For further protection of the data, this key is encrypted with a master key that is regularly rotated. It makes use of the AES-256 block cipher for data encryption. A bucket policy is used where there is a need for server-side encryption for all objects present in a bucket.<\/span><\/p>\n<p><i><span style=\"font-weight: 400;\">A <\/span><\/i><b><i>bucket policy<\/i><\/b><i><span style=\"font-weight: 400;\"> is a resource-based AWS Identity and Access Management(IAM) policy that allows you to grant permissions to your bucket and the objects that it holds. The permissions associated with a bucket are applicable to all the objects that it contains and are owned by the bucket owner.<\/span><\/i><\/p>\n<p><b>SSE-KMS, Server-side encryption with AWS-KMS managed keys: <\/b><span style=\"font-weight: 400;\">Server-side encryption with Customer Master Keys is stored in a Server-side Key Management Service, offering added advantages to SSE-S3, that is,<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Separate permissions while using a CMK, which means added protection against unauthorized object access in S3Audit Trail, that keeps track of who used the CMK and when. They can create and manage their own customer master keys, or AWS Managed CMKs, with distinct account, region, and service credentials.<\/span><\/p>\n<p><b>SSE-C, Server-side Encryption with customer-provided keys: <\/b><span style=\"font-weight: 400;\">Here you, the customer, take charge of the management of encryption keys. So, while you are responsible for managing the keys, S3 takes care of the encryption and decryption, but it does not store the encryption key. It stores a salted HMAC value of the key instead, to validate future requests. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">The HMAC key, however, could not be used for finding the encryption key value or decrypting the contents, which means that losing the encryption key would make you lose the data.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Here, you encrypt the data before sending it to S3. You may follow one of the following two procedures:<br \/>\n<\/span><\/p>\n<p><b>Client-side encryption-CMK stored in KMS: <\/b><span style=\"font-weight: 400;\">Here,<\/span><\/p>\n<p><span style=\"font-weight: 400;\">While uploading an object, the client sends a request for the new symmetric key(required for the data object encryption) to the KMS using the CMK ID. The KMS in turn will give a plain text key for data encryption along with a cipher blob key version as metadata. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">While downloading the object, the client downloads the encrypted object from S3 along with the cipher blob version of the data key. The client then sends the cypher blob to KMS and retrieves the plain text version of the data key for decrypting the data object.<\/span><\/p>\n<p><b>Client-side Encryption-Master Key stored with the Application: <\/b><span style=\"font-weight: 400;\">Here, the client uses the Master Key stored with the application.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">While uploading an object, you provide a client-side master key to the S3 encryption client, which makes use of that master key to encrypt the data encryption key that is randomly generated. After that, the S3 encryption client generates a symmetric key that can be used only once, and it makes use of the data key to encrypt the data of a single S3 object. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">The S3 data client generates a separate data key for every object. The S3 client then encrypts the data encryption key using the master key that you have provided as part of the object. While downloading an object, using the Master Key stored with the application and the object\u2019s metadata, the S3 determines which Master key has to be used for data decryption. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">It then uses the master key to decrypt the data key, decrypts the object using this data key, and sends the object back to you.<br \/>\n<\/span><\/p>\n<h4>AWS Console<\/h4>\n<p><span style=\"font-weight: 400;\">To understand the concept better with all the features explained using the AWS Console, go through our YouTube video at S3 encryption.<br \/>\n<\/span><\/p>\n<div class=\"ast-oembed-container \" style=\"height: 100%;\"><iframe title=\"What is Data Protection or AWS S3 Encryption? | Server-side Encryption and Client-side Encryption\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/ImkG0ju2t1s?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<p><span style=\"color: #ff9900;\"><span style=\"color: #ff6600;\">Reference for Amazon S3:<\/span><strong><br \/>\n<\/strong><\/span><a href=\"https:\/\/docs.aws.amazon.com\/AmazonS3\/latest\/userguide\/Welcome.html\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/docs.aws.amazon.com\/AmazonS3\/latest\/userguide\/Welcome.html<\/a><strong><br \/>\n<\/strong><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Hope you have enjoyed this detailed article about AWS Amazon Web Service guide. By using this AWS tutorial, you can advance your deployment skills in AWS which helps uplift your cloud career to higher levels. We suggest trying our <a href=\"https:\/\/www.whizlabs.com\/labs\/library\">AWS Hands-on Labs<\/a> which has guided sessions and Lab challenges to fasten your AWS learning. The positive factor with our <a href=\"https:\/\/www.whizlabs.com\/blog\/hands-on-labs-beginners-guide\/\">Hands-on Labs<\/a> is you can reduce your configuration expenses and prevent errors while configuring services. Keep Learning!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this AWS training tutorial, we are going to explore AWS (Amazon Web Services) in detail with a real-time demo of AWS Console. This beginner&#8217;s guide fastens your AWS exam preparation and improves your confidence to take up the real exam. Let us start learning AWS! Getting started with Amazon EC2 When you launch your application, predicting computing power required to run the application efficiently is one of the most difficult tasks. We will either end up in setting up more computing power than required and will be paying more or we will end up in over utilization that will [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":82861,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4,10],"tags":[4878],"class_list":["post-82826","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws-certifications","category-cloud-computing-certifications","tag-aws-training"],"uagb_featured_image_src":{"full":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws-for-beginners.png",600,315,false],"thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws-for-beginners-150x150.png",150,150,true],"medium":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws-for-beginners-300x158.png",300,158,true],"medium_large":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws-for-beginners.png",600,315,false],"large":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws-for-beginners.png",600,315,false],"1536x1536":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws-for-beginners.png",600,315,false],"2048x2048":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws-for-beginners.png",600,315,false],"profile_24":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws-for-beginners.png",24,13,false],"profile_48":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws-for-beginners.png",48,25,false],"profile_96":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws-for-beginners.png",96,50,false],"profile_150":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws-for-beginners.png",150,79,false],"profile_300":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws-for-beginners.png",300,158,false],"tptn_thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws-for-beginners-250x250.png",250,250,true],"web-stories-poster-portrait":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws-for-beginners.png",600,315,false],"web-stories-publisher-logo":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws-for-beginners.png",96,50,false],"web-stories-thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/06\/aws-for-beginners.png",150,79,false]},"uagb_author_info":{"display_name":"Krishna Srinivasan","author_link":"https:\/\/www.whizlabs.com\/blog\/author\/krishna\/"},"uagb_comment_info":4,"uagb_excerpt":"In this AWS training tutorial, we are going to explore AWS (Amazon Web Services) in detail with a real-time demo of AWS Console. This beginner&#8217;s guide fastens your AWS exam preparation and improves your confidence to take up the real exam. Let us start learning AWS! Getting started with Amazon EC2 When you launch your&hellip;","_links":{"self":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/82826","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/comments?post=82826"}],"version-history":[{"count":20,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/82826\/revisions"}],"predecessor-version":[{"id":85013,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/82826\/revisions\/85013"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/media\/82861"}],"wp:attachment":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/media?parent=82826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/categories?post=82826"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/tags?post=82826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}