Creating free tier EC2 instances
- Regions & Availability Zones
- Now lets create a windows machine (free tier eligible) in mumbai region
- AWS ec2 instances doesnot support passwords, aws will use keys (RSA private and public keys)
- The setup so far
- We have create a windows ec2 instance, windows server don’t understand private key pairs, So AWS Gives an option to generate password using private key
- To Connect to the windows ec2 instance use
mstsc -v <public ip or dns name>
- Now lets try to create a linux ec2 instance (Amazon linux) with t2 micro in ap-south-1b AZ
- Now we can use the same keys for multiple instances, so lets use the same pem file generated above.
- To connect to linux instance, we can you ssh clients.
- SSH-Clients are pre installed in Windows 10 +, linux, mac
ssh -i <path to pemfile> username@publicip ssh -i ec2learning.pem ec2-user@13.233.36.39
- If you are using windows 7,8 please install git bash (refer system setup below)
- Summary
- Terminate (Remove vms) instances after usage
System Setup (Laptop)
- System Setup for DevOps on your system (Windows): Refer Here
- For Windows 10/11 users setup Windows Terminal Refer Here