Bacancy Bacancy
  • Customers

      Fortune 500 Clients

      Verizon
      Verizon
      Franklin Templeton
      Franklin Templeton
      The Container Store
      The Container Store
      KPMG
      KPMG
      Academy Sports & Outdoors
      Academy Sports & Outdoors
      Shell
      Shell
      Bangkok Bank Ltd
      Bangkok Bank Ltd
      The Children's Place
      The Children's Place
      Edward Jones
      Edward Jones
      United Parcel Service
      United Parcel Service
      AdviceWorks
      AdviceWorks
      NatWest Markets
      NatWest Markets
      Bridgestone
      Bridgestone

      Technologies

      React JS VueJS Angular JS React Native Flutter Full Stack
      Ruby on Rails Node JS Golang AI & ML Data Science Java
      Python Salesforce DevOps Block Chain Mobile App Embedded & Hardware
      Explore All
      skype-icon

      Skype ID

      bacancy
      gmail-icon

      Email Us

      [email protected]
      call-yellow-icon

      USA

      +1 347 441 4161
      wp-icon

      Canada

      +1 416 907 6738
  • what we do

      Experience

      Digital Workplace Services Product Enhancement

      Insights

      AI & Automation Data Analytics

      Innovate

      Blockchain Software Engineering Services Internet of Things (IoT) Data Science Artificial Intelligence Machine Learning

      Accelerate

      Cloud - Bacancy Combalt Digital Process Automation Open Source Microsoft Dynamics Salesforce

      Assure

      Quality Assurance IT Staff Augmentation

      Embedded & Hardware

      Product Engineering Analog Design Services FPGA Engineering Service Wireless Design Embedded Software Design

      not list

      Hardware Engineering Power Engineering IoT Hardware
      skype-icon

      Skype ID

      bacancy
      gmail-icon

      Email Us

      [email protected]
      call-yellow-icon

      USA

      +1 347 441 4161
      wp-icon

      Canada

      +1 416 907 6738
  • who we work with

      Industries

      Banking Financial services & Insurance Startups Oil & Gas

      not list

      Healthcare Life Science Real Estate & Construction Logistics
      bacancy

      Let’s grow together Partner with us

      get quote
      skype-icon

      Skype ID

      bacancy
      gmail-icon

      Email Us

      [email protected]
      call-yellow-icon

      USA

      +1 347 441 4161
      wp-icon

      Canada

      +1 416 907 6738
  • about us

      Culture

      Agile Mindset Bacancy Values Bacancy Culture

      About Company

      About Us Leadership Team Awards & Recognition Infrastructure

      not list

      Customer Reviews Our Locations Partnership Media Coverage

      WE ARE

      GREAT PLACE TO WORK - CERTIFIEDTM

      Building and sustaining High-Trust, High-Performance CultureTM

      Bacancy Great Place to Work
      skype-icon

      Skype ID

      bacancy
      gmail-icon

      Email Us

      [email protected]
      call-yellow-icon

      USA

      +1 347 441 4161
      wp-icon

      Canada

      +1 416 907 6738
  • technology

      Front End

      Angular Reactjs Vue.js UI/UX

      Platforms

      MS Dynamics Salesforce

      Back End

      Ruby on Rails Node.js Golang Laravel .NET Java Python

      Mobile

      React Native Flutter Android iOS

      Cloud

      AWS DevOps

      QA

      Automation Testing Software Testing

      Embedded & Hardware

      Embedded
      bacancy

      World-class expertise,Delivered

      get quote
      Explore All
      skype-icon

      Skype ID

      bacancy
      gmail-icon

      Email Us

      [email protected]
      call-yellow-icon

      USA

      +1 347 441 4161
      wp-icon

      Canada

      +1 416 907 6738
  • PRODUCTS

      EV Products

      Battery Management System Motor Controller AC Charger Explore All

      not list

      CCS2 Controller DC Fast Charger AC Charge Controller
      bacancy

      Let’s grow together Partner with us

      get quote
      skype-icon

      Skype ID

      bacancy
      gmail-icon

      Email Us

      [email protected]
      call-yellow-icon

      USA

      +1 347 441 4161
      wp-icon

      Canada

      +1 416 907 6738
hire developers

Bacancy

Bacancy represents the connected world, offering innovative and customer-centric information technology experiences, enabling Enterprises, Associates and the Society to Rise™.

12+

Countries where we have happy customers

1050+

Agile enabled employees

06

World wide offices

10+

Years of Experience

05

Agile Coaches

14

Certified Scrum Masters

1000+

Clients projects

1458

Happy customers

  • Customers
      Technologies
      • React JS
      • Angular JS
      • Vue JS
      • Node JS
      • AI & ML
      • Explore All
      Fortune 500 Clients
      • Verizon
      • The Container Store
      • KPMG
      • Academy Sports & Outdoors
      • Bangkok Bank Ltd
      • The Children's Place
      • Edward Jones
      • Franklin Templeton
      • AdviceWorks
      • NatWest Markets
      • Bridgestone
      • United Parcel Service
  • What we do
      Experience
      • Digital Workplace Services
      • Product Enhancement
      Insights
      • AI & Automation
      • Data Analytics
      Innovate
      • Blockchain
      • Software Engineering Services
      • Internet of Things (IoT)
      Accelerate
      • Cloud - Bacancy Combalt
      • Digital Process Automation
      • Open Source
      • Microsoft Dynamics
      • Salesforce
      • Service Experience Transformation
      Assure
      • Testing
      • Resource Augmentation
      Embedded & Hardware
      • Product Engineering
      • Analog Design Services
      • FPGA Engineering Service
      • Wireless Design
      • Embedded Software Design
      • Hardware Engineering
      • Power Engineering
      • IoT Hardware
      • AL/ML
  • who we work with
      Industries
      • Banking Financial services & Insurance
      • Startups
      • Oil & Gas
      • Healthcare Life Science
      • Real Estate & Construction
      • Logistics
  • About Us
      About Company
      • About Us
      • Leadership Team
      • Awards & Recognition
      • Infrastructure
      • Our Locations
      • Partnership
      Culture
      • Agile Mindset
      • Bacancy Values
      • Bacancy Culture
  • Technology
      Front End
      • Angular
      • Reactjs
      • Vue.js
      • UI/UX
      Platforms
      • MS Dynamics
      • Salesforce
      Back End
      • Ruby on Rails
      • Node.js
      • Golang
      • Laravel
      • .NET
      • Java
      • Python
      Mobile
      • React Native
      • Flutter
      • Android
      • iOS
      Cloud
      • AWS
      • DevOps
      QA
      • Automation Testing
      • Software Testing
      Embedded & Hardware
      • Embedded
      Explore All
  • Products
    • Battery Management System
    • Motor Controller
    • CCS2 Controller
    • AC Charger
    • DC Fast Charger
    • AC Charge Controller
    • Explore All
  • Careers
  • Work @ Bacancy
  • Blogs
  • Resources
  • Customer Reviews
  • Contact
  • Get Quote
AWS

AWS EC2: How to Create EC2 Instance from Scratch (Part 1)

Pratik Panchal
PratikPanchal Software Engineer
Last Updated on October 19, 2021
August 31, 2018 5 min read

This blog is to help you get started with AWS EC2. We have written two parts for create instance and deployment. Part 1 is for “How to Create an EC2 Instance from Scratch” and Part 2 is for “How to setup Rails Application using Nginx, Passenger”

Create Amazon EC2 Instance :

1. Login into the EC2 dashboard in the AWS Management Console
https://console.aws.amazon.com/ec2

2. Find the services on the top of the header, click on services option and select EC2 service from compute section.

3. Click on Lunch Instance button. It will open new instance wizard page.

3. Click on Lunch Instance button. It will open new instance wizard page.

4. Choose an Amazon Machine Image (AMI) : Click on the Select button as per your requirements. We are selecting ubuntu server for demo purpose as of now: Ubuntu Server 16.04 LTS (HVM), SSD Volume Type – ami-759bc50a (64-bit)

4. Choose an Amazon Machine Image (AMI) :

5. Choose an Instance Type: Select any appropriate instance type. In the screenshot, we are selecting a t2.micro (Free tier eligible) instance, which is normally selected by default and is sufficient for demo purposes. It provide you free 1GB RAM.

5. Choose an Instance Type:

6. Configure Instance Details : We don’t need to change anything for demo purpose. Leave as it is all the options, then click the Next: Add Storage button. We are selecting default as of now: vpc-70e14e0b (default)

6. Configure Instance Details :

7. Add Storage : Leave the defaults and Click the Next: Add Tags button.

7. Add Storage :

8. Add Tags : Click on the Add Tag button. Type Name in the Key field, and in the Value field type the instance name.

8. Add Tags :

9. Configure Security Group:
Assign a security group – Select create a new security group.
Security group name – Name of the group. Ex: security group demo
Description – Description of the group.

9. Configure Security Group:

Set the rule for SSH, by selecting or setting the following values. They allow inbound SSH connections from all sources (any IP address):

Type: SSH, Protocol: TCP, Port Range:22, Source: Custom 0.0.0.0/0, Description: Accept SSH connections from all sources

Create some rules that allows inbound HTTP and HTTPS connections from all sources. Click on Add Rule button.

Type: HTTP, Protocol: TCP, Port Range: 80, Source: Custom 0.0.0.0/0, Description: Accept unencrypted HTTP connections from all sources

10. Review Instance Launch: Click the Launch button. To change settings, click on the
Previous button to go back.

10.

11. Launch: When you click the Launch button, a modal pops up asking you to select an existing key pair or create a new key pair. Select Create a new key pair, Once new key pair is created you
must have to download that .pem file then after click on the Launch Instances button.

11. Launch:

Click on launch status then after click the View Instances button.

The instances you have created so far are listed on the Instances dashboard. The following
screenshot shows a single instance.

11. Launch:

12. Create Security Group: A security group acts as a virtual firewall to control the traffic for its associated instances. Set inbound rules to control incoming traffic to the instance, and set outbound rules to control the outgoing traffic from your instance.

You need to do only for the first instance because all instances can use the same security group.

  • Select Security Groups.
  • Open the Inbound tab and verify that the rules you created are listed or not.

12. Create Security Group:

  • Click on Outbound tab and click the Edit button to create a rule for outbound traffic.

12. Create Security Group:

13. We have created instance with public IP. So public IP will be change once you restart your server. So for making static IP we need to create Elastic IPs.

  • Select Elastic IP’s from sidebar options.
  • Click on Allocate new address. Then select platform as per the requirement and click on allocate.

13.

  • It will allocate new Elastic IP automatic.

It will allocate new Elastic IP automatic.

  • You can check elastic IP from Elastic IPs option like below. You can set anything in name field.

You can check elastic IP from Elastic IPs option

  • Now the next step it to set our instance to elastic IP. For that select Action >> Associate Address. It will open new screen like below. Select resource type as per the requirement. We have selected instance as resource type. Then select instance from the list. Then select private IP from the list. We have select private IP of the created instance. Then select allow Elastic IP if you have already attached. Then click on associate button.

Now the next step it to set our instance to elastic IP.

  • For checking elastic IP to our instance

For checking elastic IP to our instance

14. Now your instance is ready to use. You can login to the server. For login you must follow below steps:

  • Move your .pem file to specific path. EX: Desktop
  • Set permission mode of the .pem file. EX: chmod 400 nginx-passenger-demo.pem
  • Login instance using ip and pem file.
        ssh -i “nginx-passenger-demo.pem” [email protected]
  • It will give you welcome screen of the instance.
        “Welcome to Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-1061-aws x86_64)”

Expand Your Digital Horizons With Us.

Start a new project or take an existing one to the next level. Get in touch to start small, scale-up, and go Agile.


Or
E-mail us : [email protected]

Your Success Is Guaranteed !

Related Articles

s3 bucket
Archita Nayak
Ayushi Koul

July 23, 2021

Cloud

How To Create AWS S3 Bucket Using Terraform

By : Archita Nayak & Ayushi Koul

Tutorial Takeaway In this tutorial, we will learn how to create an S3 bucket using Terraform. With that, let me get you through creating S3...

6 Minute Read
Read More
AWS Cloud Migration
Kiran Bhatt

July 23, 2020

Cloud

Cloud Cost Optimization: An Essential Guide to AWS Cloud Migration

By : Kiran Bhatt

Introduction: What is AWS? Amazon Web Services is a cloud computing platform that offers on-demand cloud computing services, cloud migration and APIs to companies, governments,...

9 Minute Read
Read More
cloud computing environments
Chandresh Patel

February 6, 2020

Cloud

Decoding the Cloud Service Models: SaaS, IaaS and PaaS

By : Chandresh Patel

Without a doubt, the cloud is the future of computing. Over the past decade, the cloud has been rapidly growing. Back in 2014, cloud computing...

7 Minute Read
Read More
india India (HQ)

Corporate House
15-16, Times Corporate Park, Thaltej, Ahmedabad, Gujarat 380059

USA USA

601 Brickell Key Drive, Suite 700, Miami, Florida, 33131, USA

canada Canada

71 Dawes Road, Brampton, On L6X 5N9, Toronto

australia-flag Australia

351A Hampstead Rd, Northfield SA 5085

UAE UAE

1608 Clover Bay, Business Bay, Dubai, UAE. PO Box 62049

sweden Sweden

Junkergatan 4, 126 53 Hagersten


Great Place to Work
Get in Touch
call-yellow-icon

Contact Number

+1 347 441 4161

gmail-icon

Email Us

[email protected]


  • Bacancy Behance
  • Bacancy Uplabs
  • Bacancy Pinterest
  • Brochure
  • Quality Assurance
  • Resources
  • Tutorials
  • Customer Reviews
  • Privacy Policy
  • FAQs
  • Contact Us
  • Sitemap
  • Employee
bacancy google review 4.6
bacancy google review
bacancy glassdoor review 4.5
bacancy glassdoor review
bacancy clutch review 4.8
bacancy clutch review
bacancy goodfirms review 4.5
bacancy goodfirms review
X

Get Our Newsletter

Be The First To Get The Latest Updates And Tutorials.

Request A Free Consultation

book a 30 min call popup

Before You Go...

Try our free consultation to visualize the best outcome of your business ideas.

INSTANT 30 MIN FREE CONSULTATION CALL