Notes
Notes - notes.io |
Creating a virtual machine (EC2 instance) on a student AWS account involves several steps.
Here’s a step-by-step guide to help you set up a virtual machine on your AWS student account:
Prerequisites
1. Make sure you have an AWS student account. If you don’t have one yet, you can sign up
through AWS Educate or AWS Academy, depending on what your institution offers.
2. Ensure you have your login credentials ready.
Step-by-Step Process
1. Log in to AWS Console
● Go to the AWS Management Console (https://aws.amazon.com/console/)
● Sign in with your student account credentials
2. Navigate to EC2 Service
● Once logged in, find EC2 under the Services dropdown or search for it in the search
bar
● Click on EC2 to access the EC2 Dashboard
3. Launch an EC2 Instance
● In the EC2 Dashboard, click the “Launch Instance” button
● Choose a name for your instance (e.g., “Student-VM”)
4. Choose an Amazon Machine Image (AMI)
● Select an operating system. For beginners, Amazon Linux 2 or Ubuntu are good choices
● Look for AMIs labeled as Free tier eligible if you want to avoid charges
5. Choose an Instance Type
● Select an instance type (t2.micro is included in the free tier and suitable for most student
projects)
● Click Next: Configure Instance Details
6. Configure Instance Details
● Keep the default settings or adjust as needed
● Network: Use the default VPC
● Subnet: Choose any available subnet
● Auto-assign Public IP: Enable
7. Add Storage
● The default storage (usually 8GB) is sufficient for most student projects
● Click Next: Add Tags
8. Add Tags (Optional)
● You can add tags to help identify your instance
● Click Next: Configure Security Group
9. Configure Security Group
● Create a new security group or select an existing one
● For basic access, allow SSH (port 22)
● If you need web access, add rules for HTTP (port 80) and/or HTTPS (port 443)
● Click Review and Launch
10. Review and Launch
● Review your instance configuration
● Click Launch
11. Create a Key Pair
● Select & Create a new key pair
● Give it a name (e.g.,my-student-keypair)
● Download the key pair file (.pem)
● Keep this file safe as you’ll need it to connect to your instance
● Click Launch Instances
12. Connect to Your Instance
● Go back to the EC2 Dashboard
● Wait for your instance to initialize (Status: running)
● Select your instance and click Connect
● Follow the instructions to connect via SSH using your key pair
CREATE LOAD BALANCER IN AWS
1. Access the AWS Management Console and EC2 Dashboard:
Open the Amazon EC2 console.
2. Navigate to Load Balancers:
In the navigation pane, under Load Balancing, choose & Load Balancers.
3. Create a Load Balancer:
Choose & Create Load Balancer.
Select the desired load balancer type (e.g., Application Load Balancer) and click Create.
4. Configure Load Balancer Settings:
Basic Configuration:
Enter a name for your load balancer.
Choose the scheme (Internet-facing or Internal).
Select the IP address type (IPv4, Dualstack, or Dualstack without public IPv4).
Network Mapping:
Select the VPC that your EC2 instances are in.
Choose Availability Zones and subnets.
Security Groups:
Select or create a security group that allows traffic to and from the load balancer and
target instances.
Listeners and Routing:
Configure listeners (e.g., HTTP, HTTPS) and routing rules.
Specify the target group for the listener.
Review and Create:
Review your settings and click Create.
5. Create a Target Group:
Basics:
Enter a name for the target group.
Select the protocol and port.
Choose the VPC.
Health Checks:
Configure health checks to monitor the health of your target instances.
Targets:
Register your EC2 instances as targets (or Lambda functions, IP addresses, etc.).
6. Verify and Test:
Check Health Status:
Monitor the health status of your target instances in the target group.
Test Load Balancing:
Access the load balancer’s DNS name in a web browser to verify traffic distribution.
CREATE LAMBDA FUNCTION IN AWS
1. Access the AWS Lambda Console:
Log in to the AWS Management Console and Navigate to the Lambda service.
2. Create a New Function:
Click on Create Function.
Choose Author from Scratch.
Provide a name for your function.
Select a runtime environment (e.g., Python 3.11).
Choose an IAM role (either an existing role or create a new one).
Click on Create Function.
3. Write Your Function Code:
Choose how you want to upload or create your function code (e.g., using the code editor in the
console, or uploading a zip file).
Write your function code in the editor or upload your zip file.
4. Configure Function Settings:
Set the Handler name (usually the same as your function name).
Configure other settings such as execution timeout, environment variables, tags, and memory
allocation.
5. Save Your Function:
Click & Save to save your function.
Practical-3
CREATE S3 BUCKET
Step 1: Log on to your AWS Console. If you don’t have an account, you can create it absolutely free as
Amazon provides a 1-year free tier to its new users.
Step 2: In the search bar located at the top of your AWS Management Console, type Amazon S3.
Step 3: Click on S3 - Scalable Storage in the Cloud and proceed further.
Step 4: Click on Create Bucket. A new pane will open up, where you have to enter the details and
configure your bucket.
In the general configuration category:
Step 5: Enter the name of your bucket. The following are some rules for naming a bucket in Amazon
S3:
A bucket name should be unique across all Amazon S3 buckets.
Bucket names must be between 3 and 63 characters long.
Bucket names can consist only of lowercase letters, numbers, dots (.), and hyphens (-).
You cannot write a bucket name as an IP Address like 192.168.0.1.
Bucket names must begin and end with a letter or number.
Bucket names should not contain two adjacent dots (.).
Bucket names should not end with -s3alias.
Bucket names should not start with xn--.
Step 6: Next, choose an AWS region nearest to your location or where you want your data to reside
Step 7: Click on Create Bucket.
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team
