Lakshmi Narain College of Technology, Bhopal
Department of CSE (AIML)
VI-Semester
Open Elective AL- 604 (A) Cloud Computing
Exp No List of Experiments CO
1 How to Create free tier account on AWS. CO1
2 How to enable multifactor Authentication in AWS CO1
3 How to create IAM User in AWS CO2
4 How to create Group in AWS CO2
5 How to attach different policy in IAM user CO4
6 How to create S3 Bucket. CO3
7 How to upload any object in S3 bucket CO5
8 How to create Windows instance in AWS. CO5
9 How to create Linux Instance in AWS CO4
10 How to host static Website with the use of S3 in AWS CO3
Experiment 1
How to Create an AWS Free Tier Account.
1. Go to the AWS Free Tier page:
[Link]
2. Click "Create a Free Account":
You’ll find this button on the page. Click it to start registration.
3. Enter your email & account name:
Use an active email address.
Create a strong password.
Choose an AWS account name (for personal, you can use your own name).
4.
Provide Contact Information:
Choose Personal or Professional (select Personal for individual use).
Fill in your address, city, postal code, and phone number.
5. Payment Information:
Enter valid credit/debit card details.
(AWS does a small charge of ₹2 or $1 to validate the card — this is
refunded.)
6. Identity Verification:
AWS will send you an OTP to your registered mobile number.
Enter the code to verify.
7. Select Support Plan:
Choose the Basic Plan (Free).
8. Complete Registration:
Once done, AWS will send you a confirmation email.
It can take a few minutes to a couple of hours for the account to be fully
activated.
9. Log into AWS Console:
Visit: [Link]
Use your credentials to log in!
Experiment 2
How to Enable Multi-Factor Authentication (MFA) on AWS
Step 1: Sign in to AWS Console
1. Go to: [Link]
2. Log in using your Root User or IAM User credentials
Step 2: Open "My Security Credentials"
1. Click on your account name (top-right corner).
2. Select My Security Credentials from the dropdown.
Step 3: Manage MFA
1. Under Multi-Factor Authentication (MFA) section, click Activate MFA.
2. Choose your device type:
o Virtual MFA device (Google Authenticator, Authy, Microsoft
Authenticator, etc.)
o Hardware MFA device (if you have a physical security token).
Step 4: Set Up Virtual MFA
1. Choose Virtual MFA device and click Continue.
2. Open an authenticator app on your phone.
3. Use the app to scan the QR code shown on the AWS screen.
Step 5: Enter Verification Codes
1. After scanning the QR code, your app will show a 6-digit code.
2. Enter two consecutive MFA codes to confirm the pairing.
3. Click Assign MFA.
Step 6: Completion
You’ll see a message:
MFA device successfully assigned!
Step 6: Delete the MFA-
Experiment 3
How to Create an IAM User in AWS
Step 1: Sign in to AWS Console
1. Go to: [Link]
2. Log in as Root User or an Admin IAM User.
Step 2: Open IAM Service
1. After logging in, search "IAM" in the Search bar.
2. Click on IAM under "Services."
Step 3: Navigate to Users
1. In the left sidebar, click Users.
2. Click the "Add Users" button at the top.
Step 4: Add User Details
1. Enter a username for your new user.
2. Select Access type:
☑️Programmatic access (for CLI/SDK/API).
☑️AWS Management Console access (for web login).
Set the password for console access (choose auto-generated or
custom).
Step 5: Set Permissions
You can choose one of the following:
Attach user to an existing group (recommended for permission
management).
Copy permissions from another user.
Attach policies directly (example: AdministratorAccess for full access, or
fine-tuned ones like AmazonS3ReadOnlyAccess).
Step 6: Add Tags (Optional)
You can add key-value tags for easier user management.
Example:
make file
Copyedit
Key: Department
Value: DevOpps
Step 7: Review and Create
1. Review the username, access type, and policies.
2. Click "Create User".
Step 8: Save Access Credentials
1. After creation, AWS will show:
2. Access Key ID
3. Secret Access Key
Step 9: Created Succesfully
Step 10: Deleted Succesfully
Experiment 4
How to Create Group in AWS
Step 1: Sign in to AWS Console
1. Open [Link]
2. Log in as the Root User or an Admin IAM User.
Step 2: Go to the IAM Service
1. Search for IAM in the search bar.
2. Click on IAM under "Services."
Step 3: Navigate to Groups
1. On the left-hand sidebar, click on User Groups.
2. Click the "Create group" button.
Step 4: Name Your Group
1. Enter a name for the group .
2. AWS recommends using clear and descriptive names.
Step 5: Attach Policies to the Group
Select policies based on what this group should be able to do:
o For full admin: AdministratorAccess.
o For S3 access: AmazonS3FullAccess.
o For EC2 access: AmazonEC2FullAccess.
o For custom roles, select the specific policies or create a new one.
Step 6: Review and Create
1. Review the group name and attached policies.
2. Click "Create group".
Step 7: Add Users to the Group
1. Go to User Groups.
2. Click your group name.
3. Select the "Users" tab.
Click "Add users" and select which IAM users you want to assign.
Step 8: Successfully created
Step 9: Successfully deleted
Experiment 5
How to Attach Different Policies to an IAM User in AWS
Step 1: Log into AWS Console
1. Open [Link]
2. Sign in using your Root or IAM Admin User credentials.
Step 2: Open the IAM Service
1. In the AWS Console, search for "IAM".
2. Click on IAM under "Services."
Step 3: Navigate to Users
1. On the left sidebar, click Users.
2. You’ll see a list of all users in your AWS account.
3. Select the user you want to attach policies to.
Step 4: Add Permissions
1. Click the "Add permissions" button.
Step 5: Attach Policies Directly
1. Choose Attach policies directly.
2. Browse or search for AWS-managed policies or custom policies.
Step 6: Review and Apply
Step 7: Successfully Apply
Step 8: Successfully removed
Experiment 6
How to Create an Amazon S3 Bucket
Step 1: Log into AWS Console
1. Open [Link]
2. Log in using your Root or IAM User credentials.
Step 2: Open the S3 Service
1. In the Search Bar, type S3.
2. Select S3 under "Storage."
Step 3: Create Bucket
Click the “Create bucket” button (top right).
Step 4: Configure Bucket Settings
Step 5: Configure Options
Leave default settings for most beginner scenarios.
You can enable/disable Bucket Versioning (if you want to store versions of
your files).
For public hosting: adjust Block Public Access settings (⚠️be careful if you
want public access).
Step 6: Set Permissions
You can:
o Allow or block public access.
o Add user-based access policies later.
For now, AWS recommends keeping Block all public access checked unless
you specifically need public hosting.
Step 7: Create bucket
1. Review all your settings.
2. Click the “Create bucket” button.
Experiment 7
How to Upload an Object to an S3 Bucket
Step 1: Sign In to AWS Console
1. Open [Link]
2. Log in using your Root User or IAM User credentials.
Step 2: Open the S3 Service
1. Search for S3 in the search bar.
2. Click on S3 under "Storage."
Step 3: Select Your Bucket
1. You will see a list of buckets.
2. Click on the name of the bucket where you want to upload the object.
Step 4: Upload an Object
Click the “Upload” button at the top.
In the new screen, click “Add files”.
Select the file(s) you want to upload from your computer.
Step 5: Set Object Options (Optional)
Step 6: Upload the File
1. Once you're ready, click “Upload”.
2. AWS will start uploading your file.
3. After it finishes, you will see "Upload succeeded".
Step 7: Access the Object
Go back to the bucket view.
You’ll see your file listed.
Step 8: Successfully delete object
Experiment 8
How to Launch a Windows Instance in AWS
Login to AWS Console
Go to: [Link]
Sign in with Root User or IAM User.
2. Open EC2 Service
Search EC2 in the top bar.
Click Launch Instance.
3. Choose Windows AMI
Select Microsoft Windows Server.
(Choose Windows Server 2019/2022 — Free Tier if available.)
4. Choose Instance Type
Pick [Link] (Free Tier eligible).
5. Create or Select Key Pair
Create new key pair (.pem or .ppk) for remote login.
Download and save it securely.
6. Configure Security Group
Allow RDP (Port 3389) to your IP.
7. Configure storage
8. Created Successfully
9. Launch Instance
Click Launch and wait for status: running.
8. Connect to Instance
Select your instance → Connect → RDP Client.
Open RDP, enter the IP & password.
9. Successfully Terminated the Windows instance
Experiment 9
How to create Linx Instance in AWS
1. Open EC2 Service
Go to: [Link]
Sign in with Root User or IAM User.
2. Open EC2 Service
3. Launch an Instance
Click "Launch Instance" button
Give your instance a name (e.g., "MyLinuxServer")
4. Choose an Amazon Machine Image (AMI)
Select a Linux distribution:
Amazon Linux (AWS-optimized)
Ubuntu Server
Red Hat Enterprise Linux
SUSE Linux
Debian
Or other Linux options
5. Choose an Instance Type
Select based on your needs ([Link] is free tier eligible)
Consider vCPUs, memory, and network performance
6. Create or Select a Key Pair
Create new key pair or use existing one
Download the .pem file (you'll need this to SSH into the instance)
7. Network Settings
Select VPC and subnet
Enable auto-assign public IP if needed
8. Configure Storage
Default is usually 8GB gp2 or gp3 root volume
Adjust size and type as needed
9. Launch Instance
Review all settings
Click "Launch Instance"
[Link] to Your Instance
Once running, you can SSH into it using:
ssh -i /path/to/[Link] ec2-user@your-instance-public-ip
[Link] the Instance
Check the box next to the instance you want to terminate
[Link] Termination
Click the "Instance state" dropdown button at the top
Select "Terminate instance"
Experiment 10
How to host static Website with the use of S3 in AWS
1. Create an S3 Bucket
Go to AWS S3 Console
Click "Create bucket"
Enter a globally unique bucket name (this will be your website URL if not using a
custom domain)
Format: [Link]
Select a region (choose one closest to your audience)
Uncheck "Block all public access" (since websites need to be publicly readable)
Acknowledge that the bucket will be public
Click "Create bucket"
2. Configure Bucket for Static Website Hosting
Select your bucket
Go to the "Properties" tab
Scroll to "Static website hosting"
Click "Edit" and then:
Select "Enable"
Enter [Link] as Index document
Enter [Link] as Error document (optional)
Click "Save changes"
3. Upload Your Website Files
Go to the "Objects" tab
Click "Upload" and add all your website files
Important: Set permissions during upload:
Under "Permissions", select "Grant public-read access"
Or set ACLs after upload by selecting files → Actions → Make public
4. Set Bucket Policy (Make All Objects Public)
Go to the "Permissions" tab
Click "Bucket Policy"
Add policy (replace your-bucket-name) and Click "Save"
5. Access Your Website-(to paste this URL)
[Link]
6. Select your bucket (e.g., my-static-website)
7. Empty the bucket first
Select all files ([Link], [Link], etc.)
Click "Delete"
8. Delete the bucket
Go back to bucket list
Check your bucket → Click "Delete"
Confirm bucket name → "Delete bucket"
Successfully Deleted the all Key pairs and security group also.