Posts

EC2: Chapter4 : How to create and launch a Windows instance, in 12 easy steps

Image
Prerequisites: * Must have an AWS login. :) To create one, refer to General:Chapter1 Step-1: From your home page, click on 'Services' in the top left corner and choose 'EC2' under 'Compute' category. Step-2:   The EC2 dashboard appears as follows. Click on 'Launch Instance' button. Step-3:  A 7-step creation process starts. First, you choose the image for the instance you want to create. Amazon calls this, an Amazon Machine Image (AMI). Choose a Windows AMI. For our example, I chose 2012 R2. In the 'Choose Instance Type' wizard, choose a free tier eligible instance. Step-4:   Choose default instance details.  Step-5: And then choose storage. Leave default settings there too. Note that this takes 30 Gig EBS volume. Note: If you forget to detach it when you are not using, then you will easily exceed free tier usage and may get charged. Step-6:   Choose a Tag. For my purpose of automation

EC2: Chapter-3: How to transfer files to a Linux instance from Windows using WinSCP, in 6 easy steps

Image
If you are someone who always used WinSCP (or other secure copy applications) to move your code to Linux instances, this must be a cakewalk for you. The only difference is that you will have to use the private key (.ppk format) for authentication. I thought I'd save your time :) For the beginner: Prerequisites: 1. You have an AWS account :) Otherwise refer to Chapter1 . 2. You have launched a Linux instance on EC2 and it is currently running. You have the public DNS name for it. Refer to EC2:Chapter-1 . 3. You have converted the .pem private key provided by EC2 to a .ppk file using PuTTYgen and have saved on your computer. Refer to EC2:Chapter-2 . 4. Your Linux instance has scp installed. Just run scp on you instance to check. 5. You have the latest WinSCP installed on your Windows machine. Otherwise download from  https://winscp.net/eng/download.php Step-1: Open WinSCP. Click on New Site in the Login wizard Step-2: Copy the public DNS name of your instance

EC2-Chapter-2: HOW to connect to a Linux instance through SSH using PuTTY, in 6 easy steps

Image
In this chapter, we will learn using PuTTY to connect through SSH to a Linux instance on Amazon EC2. We will connect to the Amazon Linux instance we created in EC2:Chapter-1 Prerequisites: * You have an AWS login :) . Refer to Chapter1 , otherwise. * You have created a Linux instance, which is currently in RUNNING status. Refer to EC2:Chapter-1 otherwise. * Your Linux instance can be SSHed from the current IP. Check your security group rule for SSH. Refer to EC2:Chapter-1 otherwise. * You have entire PuTTY suite installed on your computer and have PuTTYgen available. If not, download from https://putty.org/ NOTE: PuTTY does NOT support the private key format (.pem) generated by EC2. We will use PuTTYgen to convert that private key to .ppk format, which PuTTy supports. Step1: Start PuTTYgen from the start menu. Make sure the 'RSA' option is selected for 'Type of keys to generate' at the bottom of the wizard. Step2: Click on Load button and choose

EC2: Chapter-1: HOW to create and launch a Linux instance using Amazon EC2, in 10 easy steps

Image
Amazon Elastic Compute Cloud (EC2) is one of the 'Compute' services of the AWS platform. It allows you to rent a virtual machine ('instance' in AWS language) on which you can run your own applications. In this chapter we will learn, in 10 easy steps, how to create and launch an EC2 instance. Prerequisites: * Must have an AWS login. :) To create one, refer to Chapter 1 . We will use our Free tier personal login to create an Amazon Linux instance preinstalled with Python. Step-1 : From your home page, click on 'Services' in the top left corner and choose 'EC2' under 'Compute' category. Step-2 : The EC2 dashboard appears as follows. Click on 'Launch Instance' button. Step-3: A 7-step creation process starts. First, you choose the image for the instance you want to create. Amazon calls this, an Amazon Machine Image (AMI). For our example, we will choose the AMI for 64-Bit Amazon Linux that has Python, Perl,