AWS EC2

Goal

launch Linux and Windows based EC2 Instances in us-east-1 region

Pre-Requisites

  1. AWS Free Tier Account

Deployment

  1. Create AWS EC2 Keypair in .pem format
  2. Create Linux EC2 Instance with below configuration
    1. Root volume of 10GB
    2. Instance Type: t2.micro
    3. Amazon Linux 2 AMI
    4. Attach Key Pair created in step 1
    5. Create and Attach Elastic IP
  3. Create Windows EC2 Instance with below configuration
    1. Root volume of 30 GB
    2. Instance Type: t2.micro
    3. Windows Server 2019 base
    4. Attach Key Pair created in step 1
    5. Create and Attach Elastic IP
  4. Calculate estimated billing for both instances created in previous steps and add pricing matrix in the comments box.

Validation

NOTE: You may need to convert the keys from .pem to .ppk if you are using putty to connect to the Linux EC2. Follow the this LINK to know how to convert the key format.

  1. Login to Linux EC2 Instance with default user name. Post in the comments the default user names of your favorite Linux flavored OS.
  2. Login to Windows EC2 Instance and confirm the Login status in the comments box.

Destroy

  1. Terminate Both EC2 instances  to abide the Free Tier Limitations.
  2. Release the Elastic IP

If not confident, repeat the steps again. Good Luck.

© Edwiki Trainings – Click HERE If you are interested to learn more on Cloud & DevOps stack.

1 Shares:
26 comments
  1. —————————–LINUX SERVER access issue after converting pem to ppk ————————–
    afer converting PEM for to PPk not able to access the linux server getting the belwo error
    Unable to load private key file “C:\Users\sthoufic\Downloads\private.ppk” (PuTTY key format too new)
    login as: ec2-user

    Disconected : no supported authentication method available

    Note :- Im able to access the linux server with ec2-user via browser
    Last login: Sun Apr 24 19:33:37 2022 from ec2-18-206-107-24.compute-1.amazonaws.com

    __| __|_ )
    _| ( / Amazon Linux 2 AMI
    ___|\___|___|

    https://aws.amazon.com/amazon-linux-2/
    [ec2-user@ip-172-31-31-27 ~]$ uname -r
    5.10.109-104.500.amzn2.x86_64
    [ec2-user@ip-172-31-31-27 ~]$
    —————————–Linux Server estimated billing ————————–
    t2.micro
    On-Demand hourly cost 0.0116
    vCPUs 1
    GPUs NA
    1YR Std reserved hourly cost 0.0072
    Memory (GiB) 1 GiB
    Network performance Low to Moderate

    Amazon EC2 estimate
    Amazon EC2 On-Demand instances (monthly) 8.47 USD
    Amazon Elastic Block Storage (EBS) pricing (monthly) 1.00 USD
    Total monthly cost: 9.47 USD

    ————————————Windowns server login confirmation———————————
    USER ID :- ADMINISTRATOR
    password :- decripted with PEM file
    C:\Users\Administrator>systeminfo
    Host Name: EC2AMAZ-3EE11F0
    OS Name: Microsoft Windows Server 2019 Datacenter
    OS Version: 10.0.17763 N/A Build 17763
    OS Manufacturer: Microsoft Corporation
    OS Configuration: Standalone Server
    OS Build Type: Multiprocessor Free
    Registered Owner: EC2
    Registered Organization: Amazon.com
    Product ID: 00430-00000-00000-AA621
    Original Install Date: 4/24/2022, 6:03:07 PM
    System Boot Time: 4/24/2022, 6:25:06 PM

    ————————————WINDOWNS SERVER ESTIMATED BILLING——————————–

    t2.micro
    On-Demand hourly cost 0.0162
    vCPUs 1
    GPUs NA
    1YR Std reserved hourly cost 0.0118
    Memory (GiB) 1 GiB
    Network performance Low to Moderate

    Amazon EC2 estimate
    Amazon EC2 On-Demand instances (monthly) 11.83 USD
    Amazon Elastic Block Storage (EBS) pricing (monthly) 3.00 USD
    Total monthly cost: 14.83 USD

  2. Estimated billing for Linux instance – 10.19 USD (Total monthly cost)
    Estimated billing for Windows instance – 15.83 USD (Total monthly cost)
    Default user names of your favorite Linux flavored OS – ec2-user
    Login to Windows EC2 Instance and confirm the Login status – Able to login

  3. linux — 9.47 USD
    wins – 12.83 USD
    LINUX default user ec2-user
    able to login windowserver

  4. AMI – Amazon Linux 2 user name ec2-useR
    wINDOWS sERVER LOGIN
    hOSTNAME: ec2amaz-hjlmlot
    instance id: i-05de52e10ad396f
    public ipv4 address: 54.87.115.41
    private ipv4 address: 172.31.92.26
    instance size: t2.micro
    Availability zone: us-east-1c
    Architecture: amd64
    total memory: 1024MB
    Network performance: low to moderate
    Windows SERVER ESTIMATED BILLING
    Total Monthly cost: 11.61 USD

  5. login as: ec2-user
    Authenticating with public key “imported-openssh-key”

    __| __|_ )
    _| ( / Amazon Linux 2 AMI
    ___|\___|___|

    https://aws.amazon.com/amazon-linux-2/
    12 package(s) needed for security, out of 22 available
    Run “sudo yum update” to apply all updates.
    [ec2-user@ip-172-31-94-21 ~]$ ls
    [ec2-user@ip-172-31-94-21 ~]$ ls -l
    total 0

  6. ESTIMATED BILLING FOR Linux INSTANCE.
    Total Upfront cost: 0.00 USD
    Total Monthly cost: 9.27 USD
    estimated billing for Windows instance.
    Total Upfront cost: 0.00 USD
    Total Monthly cost: 14.83 USD

  7. Monthly billing for Linux-9.47 usd
    monthly billing for windows-14.83 usd
    linux instance user name -ec2-user
    windows ec2 instance – server not responding

  8. —————————–Linux Server estimated billing ————————–
    Root volume of 10GB
    TOTAL MONTHLY COST: 9.47 USD

    ————————————WINDOWS SERVER ESTIMATED BILLING——————————–
    Root volume of 30GB
    Total Monthly Cost: 14.83 USD

    1. Default user names of your favorite Linux-flavored OS – ec2-user
      Login to Windows EC2 Instance and confirm the Login status – Able to login

  9. Linux
    ——-
    1 instances x 0.0116 USD x 730 hours in a month = 8.47 USD (monthly onDemand cost)
    Amazon EC2 On-Demand instances (monthly): 8.47 USD
    10 GB x 0.10 USD x 1 instances = 1.00 USD (EBS Storage Cost)
    EBS Storage Cost: 1.00 USD
    Amazon Elastic Block Storage (EBS) pricing (Monthly): 1.00 USD
    ————————————————————–
    Total Upfront cost: 0.00 USD
    Total Monthly cost: 9.47 USD
    —————————————————————

    Windows
    ——-
    1 instances x 0.0162 USD x 730 hours in a month = 11.83 USD (monthly onDemand cost)
    Amazon EC2 On-Demand instances (monthly): 11.83 USD
    30 GB x 0.10 USD x 1 instances = 3.00 USD (EBS Storage Cost)
    EBS Storage Cost: 3.00 USD
    Amazon Elastic Block Storage (EBS) pricing (monthly): 3.00 USD
    ————————————————————–
    Total Upfront cost: 0.00 USD
    Total Monthly cost: 14.83 USD
    ————————————————————–

    Linux login :
    ———-
    login as: ec2-user
    Authenticating with public key “imported-openssh-key”

    __| __|_ )
    _| ( / Amazon Linux 2 AMI
    ___|\___|___|

    https://aws.amazon.com/amazon-linux-2/
    12 package(s) needed for security, out of 22 available
    Run “sudo yum update” to apply all updates.
    [ec2-user@ip-172-31-94-42 ~]$
    [ec2-user@ip-172-31-94-42 ~]$

    ————————————————————–
    Windows Login :
    ————-
    \Users\Administrator>systeminfo

    Host Name: EC2AMAZ-TA8IAPB
    OS Name: Microsoft Windows Server 2019 Datacenter
    OS Version: 10.0.17763 N/A Build 17763
    OS Manufacturer: Microsoft Corporation
    OS Configuration: Standalone Server
    OS Build Type: Multiprocessor Free
    Registered Owner: EC2
    Registered Organization: Amazon.com
    Product ID: 00430-00000-00000-AA992
    Original Install Date: 7/24/2022, 6:08:18 AM
    System Boot Time: 7/24/2022, 6:21:17 AM

  10. window server T2.MICRO, 1Mounth charges 12.40 USD
    LINUX SERVER T2.MICRO, 1MOUNTH CHARGES 9.04 USD
    MUMBAI REGION

  11. Estimated billing for Linux instance – 8.468000 USD (Total monthly cost)
    Estimated billing for Windows instance – 11.826000 USD (Total monthly cost)
    Default user names of your favorite Linux flavored OS – ec2-user
    Login to Windows EC2 Instance and confirm the Login status – Able to login

  12. Estimated billing for Linux instance – 8.468000 USD (Total monthly cost)
    Estimated billing for Windows instance – 11.826000 USD (Total monthly cost)
    Default user names of your favorite Linux flavored OS – ec2-user
    Login to Windows EC2 Instance and confirm the Login status – Able to login

  13. Linux – Ondemand – 0.0116$ Hourly and 8.47$ Monthly
    Windows – Ondemand – 0.0162$ Hourly and 11.83$ Monthly
    Login details:
    Linux- EC2-user(Default User name)
    Windows – able to connect via RDP (User name- Administrator)

  14. EStimated billing for linux instance :-
    1 instances x 0.0116 USD On Demand hourly cost x 730 hours in a month = 8.468000 USD
    On-Demand instances (monthly): 8.468000 USD
    Estimated billing for Windows instance :-
    1 instances x 0.0162 USD On Demand hourly cost x 730 hours in a month = 11.826000 USD
    On-Demand instances (monthly): 11.826000 USD
    Default user names of your favorite Linux-flavored OS – ec2-user
    Login to Windows EC2 Instance and confirm the Login status – Able to login

  15. Region – North Virginia
    ESTIMATED BILLING FOR LINUX INSTANCE :-
    1 INSTANCES X 0.0116 USD ON DEMAND HOURLY COST X 730 HOURS IN A MONTH = 8.468000 USD
    ON-DEMAND INSTANCES (MONTHLY): 8.468000 USD
    ESTIMATED BILLING FOR WINDOWS INSTANCE :-
    1 INSTANCES X 0.0162 USD ON DEMAND HOURLY COST X 730 HOURS IN A MONTH = 11.826000 USD
    ON-DEMAND INSTANCES (MONTHLY): 11.826000 USD
    DEFAULT USER NAMES OF YOUR FAVORITE LINUX-FLAVORED OS – EC2-USER
    LOGIN TO WINDOWS EC2 INSTANCE AND CONFIRM THE LOGIN STATUS – ABLE TO LOGIN

  16. Ec2 instance for Windows:
    usernname: admisistrator
    pwd: -Rnf6zclRXqbr9a-Xfi*;4US&Zp*5bUo
    Managed logged ec2 Windows server
    note: there is no estimate price for free tier

  17. EStimated billing for linux instance –
    1 instances x 0.0116 USD On Demand hourly cost x 730 hours in a month = 8.468000 USD
    On-Demand instances (monthly)-8.468000 USD
    Estimated billing for Windows instance :-
    1 instances x 0.0162 USD On Demand hourly cost x 730 hours in a month = 11.826000 USD
    On-Demand instances (monthly): 11.826000 USD
    Default user names of linux OS – ec2-user
    Login to Windows EC2 Instance and confirm the Login status – Able to login .

  18. 1. Login to Linux EC2 Instance with default user name. Post in the comments the default user names of your favorite Linux flavored OS.
    ec2-user

    2. Login to Windows EC2 Instance and confirm the Login status in the comments box.
    logged In

  19. 1. Login to Linux EC2 Instance with default user name. Post in the comments the default user names of your favorite Linux flavored OS.
    ec2-user

    2. Login to Windows EC2 Instance and confirm the Login status in the comments box.
    logged In

    Estimated cost linux 141.91 USD Region MuMBAI
    Estimated Cost windows 318.23 USD Mumbai
    I took Mumbai as a region because N. Virginia region has some subnet issue

  20. REGION – MUMBAI
    ESTIMATED BILLING FOR LINUX INSTANCE-
    1 INSTANCES X 0.0124 USD ON DEMAND HOURLY COST X 730 HOURS IN A MONTH = 9.052000 USD
    ON-DEMAND INSTANCES (MONTHLY): 9.052000 USD
    Default user names of my favorite Linux flavored OS is ec2-user

    Estimated billing for windows instance-
    1 instances x 0.017 USD On Demand hourly cost x 730 hours in a month = 12.410000 USD
    On-Demand instances (monthly): 12.410000 USD
    Login to Windows EC2 Instance and confirm the Login status – Able to login

  21. Region Mumbai
    ESTIMATED BILLING FOR LINUX INSTANCE-
    1 instances x 0.0124 USD On Demand hourly cost x 730 hours in a month = 9.052000 USD
    On-Demand instances (monthly): 9.052000 USD
    ESTIMATED BILLING FOR WINDOWS INSTANCE-
    1 instances x 0.017 USD On Demand hourly cost x 730 hours in a month = 12.410000 USD
    On-Demand instances (monthly): 12.410000 USD
    DEFAULT USER NAMES OF YOUR FAVORITE LINUX-FLAVORED OS – EC2-USER
    LOGIN TO WINDOWS EC2 INSTANCE AND CONFIRM THE LOGIN STATUS – ABLE TO LOGIN

Leave a Reply to namrata Cancel reply

Your email address will not be published. Required fields are marked *

You May Also Like