Saturday, 15 August 2020

How to create EC2 instance and connect


 

Steps:


1: Go to AWS console. click on All services, Click on Compute -->  Click on EC2


2. Click on Launch instance. Choose an Amazon machine image (AMI), click next

3. select
Ubuntu Server 16.04 LTS (HVM), SSD Volume Type - ami-0552e3455b9bc8d50
click next

4. choose an instance type as t2.small, 2GB memory. click next

5. Leave values to default in step 3 and step 4. click next

6. enter tag name in step 5. Click to add a Name tag. it can be something like 
JenkinsEC2. click next:configure Security Group


7. Click create new security group, give name as MyJenkinsSecurityGroup, add custom rule for 8080, 8090 , allow 0.0.0.0/0 as source IP

8. Click on Review and launch

9. Click on Launch
Click on Launch

10. Choose the existing key pair if you have one, otherwise create new one, give some name as mySep18EC2Key. Make sure you download the key. Please do not give any space or any character in naming the key.



10. Click on launch instance, Scroll down and click on view instances.
Once instance is created. you can see it running..


Tools Needed

 
5 Must-Have IT Infrastructure Automation Tools - InformationWeek

  • Notepad ++: Text Editor For Code Editing  Notepad++ is a text and source code editor for use with Microsoft Windows. It supports tabbed editing, which allows working with multiple open files in a single window. The project's name comes from the C increment operator. Notepad++ is distributed as free software . Get it Here:https://notepad-plus-plus.org/downloads/

  • Vscode: Visual Studio Code is a free source-code editor made by Microsoft for Windows, Linux and macOS. Features include support for debugging, syntax highlighting, intelligent code completion, snippets, code refactoring, and embedded Git.                                                              Get it here: https://code.visualstudio.com/

  • Mobaxterm: MobaXterm is your ultimate toolbox for remote computing. In a single Windows application, it provides loads of functions that are tailored for programmers, webmasters, IT administrators and pretty much all users who need to handle their remote jobs in a more simple fashion.MobaXterm provides all the important remote network tools (SSH, X11, RDP, VNC, FTP, MOSH, ...) and Unix commands (bash, ls, cat, sed, grep, awk, rsync, ...) to Windows desktop, in a single portable exe file which works out of the box. More info on supported network protocols

  • Liquibase: Liquibase is an open-source database-independent library for tracking, managing and applying database schema changes. It was started in 2006 to allow easier tracking of database changes, especially in an agile software development environment. Downloading the Liquibase Installer for Windows and Mac|Linux|Unix

    Go to https://www.liquibase.org.

    Click the   button. 

    Enter your email address and select the  button. Download Liquibase community

    This will send an email that contains a link to the Getting Started with Liquibase page.

    You will see the Liquibase download page. Make sure the correct tab for your operating system is selected

  • Git: Git is a distributed version-control system for tracking changes in source code during software development. It is designed for coordinating work among programmers, but it can be used to track changes in any set of files. Its goals include speed, data integrity, and support for distributed, non-linear workflows. Get it here: linux: https://git-scm.com/download/linux

                                                                                    windows: https://gitforwindows.org/

How to upgrade Maven

  java.lang.IllegalStateException I had installed maven in my ubuntu using command  apt install maven This installed maven in path /usr/shar...