Goal
launch Linux and Windows based EC2 Instances in us-east-1 region
Pre-Requisites
- AWS Free Tier Account
Deployment
- Create AWS EC2 Keypair in .pem format
- Create Linux EC2 Instance with below configuration
- Root volume of 10GB
- Instance Type: t2.micro
- Amazon Linux 2 AMI
- Attach Key Pair created in step 1
- Create and Attach Elastic IP
- Create Windows EC2 Instance with below configuration
- Root volume of 30 GB
- Instance Type: t2.micro
- Windows Server 2019 base
- Attach Key Pair created in step 1
- Create and Attach Elastic IP
- 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.
- Login to Linux EC2 Instance with default user name. Post in the comments the default user names of your favorite Linux flavored OS.
- Login to Windows EC2 Instance and confirm the Login status in the comments box.
Destroy
- Terminate Both EC2 instances to abide the Free Tier Limitations.
- 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.
26 comments
monthly billing for
linux: 6.26 usd
windows: 11.61 usd
—————————–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
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
linux — 9.47 USD
wins – 12.83 USD
LINUX default user ec2-user
able to login windowserver
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
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
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
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
—————————–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
Default user names of your favorite Linux-flavored OS – ec2-user
Login to Windows EC2 Instance and confirm the Login status – Able to login
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
Linux – $0.13
Windows – $0.00
amazon Linux – ec2-user
windows ec2 login status – running
updated estimated billing cost
linux – $6.26
windows – $11.61
window server T2.MICRO, 1Mounth charges 12.40 USD
LINUX SERVER T2.MICRO, 1MOUNTH CHARGES 9.04 USD
MUMBAI REGION
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
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
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)
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
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
Ec2 For Linux:
login as: ec2-user
Authenticating with public key “imported-openssh-key”
__| __|_ )
_| ( / Amazon Linux 2 AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-2/
[ec2-user@ip-172-31-83-175 ~]$
Price estimation on free tier
note:Free Tier isn’t included in AWS Pricing Calculator
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
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 .
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
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
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
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