0% found this document useful (0 votes)
4 views

JS_CC Lab Manual Final

The document outlines a series of assignments for a student named Shinde Jotiram Navanath in the T.E. AI&DS class, focusing on setting up AWS environments, creating databases, and deploying a WordPress site. Each assignment includes specific aims, outcomes, requirements, and detailed procedures for tasks such as creating AWS accounts, securing users, and visualizing data with Amazon QuickSight. The assignments aim to provide practical experience with cloud computing and database management using AWS services.

Uploaded by

Jotiram Shinde
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

JS_CC Lab Manual Final

The document outlines a series of assignments for a student named Shinde Jotiram Navanath in the T.E. AI&DS class, focusing on setting up AWS environments, creating databases, and deploying a WordPress site. Each assignment includes specific aims, outcomes, requirements, and detailed procedures for tasks such as creating AWS accounts, securing users, and visualizing data with Amazon QuickSight. The assignments aim to provide practical experience with cloud computing and database management using AWS services.

Uploaded by

Jotiram Shinde
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 29

Assignment No .

: 1

Name : Shinde Jotiram Navanath


Class : T.E. AI&DS
Roll.NO : 25

Aim : To set up an AWS environment by creating a new AWS account, securing the root user,
creating an IAM user, configuring the AWS CLI, and setting up a Cloud9 development
environment.

Outcome:

By the end of this assignment, students will be able to:

• Create and configure a new AWS account.


• Secure the root user using best security practices.
• Create an IAM user with appropriate permissions.
• Install and configure the AWS CLI for command-line interaction.
• Set up AWS Cloud9 for cloud-based development.

Requirements:

1. A computer with an internet connection.


2. A valid email address for AWS account registration.
3. A web browser (Chrome, Firefox, or Edge recommended).
4. AWS Free Tier account (can be created at AWS Console).
5. Basic understanding of cloud computing and AWS services.
6. AWS CLI installed (can be downloaded from AWS CLI Installation Guide).

Procedure:

Step 1: Create a New AWS Account

1. Open a web browser (Google Chrome, Firefox, or Edge).


2. Go to AWS Console.
3. Click "Create an AWS Account."

4. Enter the following details:


a. Email address (for AWS account).
b. AWS account name (e.g., "StudentAWS").
c. Password (create a strong password).

5. Click Continue and complete the form with your contact details.
6. Enter your credit/debit card details for verification.
a. AWS will charge a small refundable amount for verification.

7. Complete identity verification using OTP sent to your phone/email.


8. Choose the Free Tier plan and finalize the account setup.
9. Log in to the AWS Console using your credentials.

Step 2: Secure the Root User

1. In the AWS Console, click on your account name (top-right corner) → "Security
Credentials."
2. Under Multi-Factor Authentication (MFA), click "Activate MFA."
3. Select "Virtual MFA device" and scan the QR code using an authenticator app:
a. Google Authenticator (Android/iOS)
b. Microsoft Authenticator

4. Enter the two OTPs generated by the authenticator app.


5. Click "Assign MFA" to complete setup.
6. Navigate to Security Credentials and enable security notifications.
7. Sign out and log in again using MFA to confirm that security is active.

Step 3: Create an IAM User (For Secure Access)

1. In the AWS Console, search for "IAM" and open Identity and Access
Management.
2. Click "Users" → "Add User".

3. Enter a username (e.g., student-user).

4. Select "Access Key - Programmatic access" (for CLI & API access).
5. Click "Next" and assign permissions:
a. Select "Attach existing policies directly".
b. Search for "AdministratorAccess" and select it.
6. Click "Next" and review details.
7. Click "Create User" and download the Access Key ID & Secret Access
Key.
a. Store these credentials securely as they are required for AWS CLI.

Step 4: Install and Set Up AWS CLI on Windows

4.1 Install AWS CLI

1. Download AWS CLI for Windows from AWS CLI Official Download.
2. Run the .msi installer file.

3. Follow the installation wizard and complete the setup.


4. Open Command Prompt (cmd) or Windows PowerShell.
5. Verify the installation by running:
4.2 Configure AWS CLI

1. Open Command Prompt (cmd) or PowerShell.


2. Run the following command: aws configure

3. Enter the requested details:


a. AWS Access Key ID: (Paste from IAM user credentials).
b. AWS Secret Access Key: (Paste from IAM user credentials).
c. Default region name: e.g., us-east-1 or ap-south-1 (Mumbai).
d. Default output format: json (or choose table/text).

4. Verify the setup by running: aws s3 ls

• If AWS CLI is configured correctly, this will list your S3 buckets (or
return an empty list if no buckets exist).

Step 5: Set Up AWS Cloud9 on Windows

1. In the AWS Console, search for "Cloud9" and open AWS Cloud9.
2. Click "Create Environment".
3. Enter a name for your environment (e.g., MyCloud9Env).
4. Click Next Step.

5. Choose an instance type (for Free Tier, select t2.micro).


6. Select the region closest to you (e.g., ap-south-1 for Mumbai).
7. Click "Create" and wait for the environment to launch.

8. Once ready, AWS Cloud9 opens in a web-based IDE where you can start coding.
Assignment No .: 2

Name : Shinde Jotiram Navanath


Class : T.E. AI&DS
Roll.NO : 25

Aim: To create an Amazon RDS MS SQL Express database, load sample data, and visualize
it using Amazon QuickSight.

Outcome:

Students will learn how to:

• Launch an MS SQL Express instance using Amazon RDS


• Connect and manage data in RDS
• Visualize that data using Amazon QuickSight

Requirements:

• AWS Account with Free Tier access


• RDS service enabled
• Amazon QuickSight enabled in the AWS account
• Basic knowledge of SQL
• Windows system with a web browser and internet
• SQL Server Management Studio (SSMS) installed (optional, for easier DB access)

Procedure (for Windows Users):

Step 1: Create an RDS Instance with MS SQL Express

1. Sign up for the AWS Management Console.


2. Open the Amazon RDS console and choose the Region where you want to create
the Database.
3. In the Create Database section, choose Create Database.
4. On the Create database page, in the Choose a database creation method section,
choose Easy Create.
5. In the Configuration section, make the following changes:
For Engine type, choose Microsoft SQL Server.
For DB instance size, choose the Free tier.
For DB instance identifier, type qsdatabase.
For the Master username, enter admin.
For the Master password, type a unique password, and confirm the password.
6. In the View default settings for Easy create drop down, leave the default settings.
Then, choose Create database.

Step 2: Download and connect to a Microsoft SQL Server client

1) Open the Download Microsoft SQL Server Management Studio page and
choose the link under the Download SSMS section.
2) Open the Amazon RDS console, in the left-hand navigation pane, choose
Databases. Then, choose the qsdatabase.

3) On the qsdatabase page, choose Modify.

4) On the ModifyDB instance: qsdatabase page, in the Connectivity section,


choose Additional Configuration. Then, choose Publicly accessible, and choose
Continue.

5) On the ModifyDB instance: qsdatabase page, in the Scheduling of


modifications section, choose Apply immediately. Then, choose Modify DB
instance.
6) Verify that the SSMS Client download has been completed. Then, install
and open the software.

7) In the SQL Server pop up window, enter the following details.

8) For Server Name, paste the qsdatabase Endpoint and Port separated by
commas. Example: qdatabase.abc.us-east-1.rds.amazonaws.com,1433.

Step 3: Create a sample database and tables, and load sample data
1) Open SQL Server Management Studio, in the left-hand navigation, choose
Databases. Then, right-click and choose Create Database.

2) On the New database page, for the Database name, type Visualize. Then,
choose OK.

3) Choose Visualize, and choose New Query.

4) In the Query editor, run the following script.

Query:

CREATE TABLE newhire(


empno INT PRIMARY KEY,
ename VARCHAR(10),
job VARCHAR(9),
manager INT NULL,
hiredate DATETIME,
salary NUMERIC(7,2),
comm NUMERIC(7,2) NULL,
department INT
)

BEGIN
INSERT INTO newhire VALUES (1,'JOHNSON','ADMIN',6,'12-17-1990',18000,NULL,4)
INSERT INTO newhire VALUES (2,'HARDING','MANAGER',9,'02-02-1998',52000,300,3)
INSERT INTO newhire VALUES (3,'TAFT','SALES I',2,'01-02-1996',25000,500,3)
INSERT INTO newhire VALUES (4,'HOOVER','SALES I',2,'04-02-1990',27000,NULL,3)
INSERT INTO newhire VALUES (5,'LINCOLN','TECH',6,'06-23-1994',22500,1400,4)
INSERT INTO newhire VALUES (6,'GARFIELD','MANAGER',9,'05-01-1993',54000,NULL,4)
INSERT INTO newhire VALUES (7,'POLK','TECH',6,'09-22-1997',25000,NULL,4)
INSERT INTO newhire VALUES (8,'GRANT','ENGINEER',10,'03-30-1997',32000,NULL,2)
INSERT INTO newhire VALUES (9,'JACKSON','CEO',NULL,'01-01-1990',75000,NULL,4)
INSERT INTO newhire VALUES (10,'FILLMORE','MANAGER',9,'08-09-1994',56000,NULL,2)
INSERT INTO newhire VALUES (11,'ADAMS','ENGINEER',10,'03-15-1996',34000,NULL,2)
INSERT INTO newhire VALUES (12,'WASHINGTON','ADMIN',6,'04-16-1998',18000,NULL,4)
INSERT INTO newhire VALUES (13,'MONROE','ENGINEER',10,'12-03-2000',30000,NULL,2)
INSERT INTO newhire VALUES (14,'ROOSEVELT','CPA',9,'10-12-1995',35000,NULL,1)
END

CREATE TABLE department(


deptno INT NOT NULL,
dname VARCHAR(14),
loc VARCHAR(13)
)

BEGIN
INSERT INTO department VALUES (1,'ACCOUNTING','ST LOUIS')
INSERT INTO department VALUES (2,'RESEARCH','NEW YORK')
INSERT INTO department VALUES (3,'SALES','ATLANTA')
INSERT INTO department VALUES (4,'OPERATIONS','SEATTLE')
END
Step 4: Make the database instance Not publicly accessible:

1) Open the Amazon RDS console, in the left-hand navigation, choose


Databases. Then, choose the qsdatabase.

2) On the qsdatabase page, choose Modify.

3) On the ModifyDB instance: qsdatabase page, in the Connectivity section,


choose Additional Configuration. Then, choose Not publicly accessible, and
choose Continue.

4) On the ModifyDB instance:qsdatabase page, in the Scheduling of


modifications section, choose Apply immediately. Then, choose Modify DB
instance.
Step 5: Enable the RDS database instance for access to Amazon QuickSight

1) Open the Amazon RDS console, in the left-hand navigation, choose


Databases. Then, choose the qsdatabase.

2) On the qsdatabase page, in the Connectivity & security section, copy the
VPC id.

3) Under Security, choose the VPC security groups link.


4) On the Security Groups page, choose Create Security Group.
5) On the Create security group page, in the Basic details section, enter the
following details.
For Name, type RDS SecGP
For Description, type for QS
For VPC, choose the VPC id for your RDS instance.
6) Then, choose Create security group.Choose Create
7) On the Security Groups page, choose Create security group.
8) On the Create security group page, in the Basic details section, enter the
following details.
For Name, type QS SecGP
For Description, type for RDS
For VPC, choose the VPC id for your RDS instance.
9) In the Inbound rules section, choose Add rule.
10) On the Modify DB instance: qsdatabase page, in the Scheduling of
modifications section, choose Apply immediately. Then, choose Modify DB
instance.
Step 6: Create your Amazon QuickSight account:
1) Open the Amazon QuickSight landing page and choose Sign up for
QuickSight.
2) On the Create you QuickSight account page, for Edition, choose Enterprise,
and choose Continue.
3) On the Create your QuickSight account page, in the Edition section, choose
Use IAM federated identities and QuickSight-managed users.
4) In the QuickSight region section, enter the following details.
Select a region from the drop-down list.
· For the QuickSight account name, type a unique account name.
· For Notification email address, type an email address where you will receive
notifications.
5) Then click on finish.
6) Choose Go to Amazon QuickSight, to open the Amazon QuickSight
console.
In the Output delivery section, for Delivery method, choose Public

Step 7: Enable Amazon QuickSight to connect to Amazon RDS and create a


dataset for visualization:
1) On the Analyses page, in the top right corner of the screen, and choose your
username. Then, from the drop-down list, choose Manage QuickSight.
2) On the left navigation pane, choose Manage VPC connections. Then, choose
Add VPC connection.
3) In your web browser, open a new tab. Then, open the Amazon RDS console,
in the left-hand navigation, choose Databases. Then, choose the qsdatabase.
4) On the qsdatabase page, in the Connectivity & security section, under VPC,
copy the id. Then, under Subnets, copy one of the ids.
5) Navigate back to the Adding VPC connection page, and enter the following
details.
· For the VPC connection name, type RDSVPC
· For VPC ID, choose the ID you copied .
· For Subnet ID, paste the ID you copied.
· For the Security group ID, paste the id.
6) Then, choose Create.
7) On the top left corner of your screen, choose the QuickSight icon. Then, in
the left navigation, choose Datasets.
8) On the Datasets page, choose New dataset.
9) On the Create a Datasets page, choose RDS.
10) On the New RDS data source page, enter the following details.
1. For Data source name, type DataFromRDS
2. For Instance ID, choose qsdatabase
3. For Connection type, choose RDSVPC
4. For Database name, type Visualize
5. For Username, type the username you entered when creating the Visualize
database
6. For Password, type the password you entered when creating the Visualize
database
11) Then, choose Validate connection. If the connection was successful, choose
Create data source.
12) On the Choose your table page, in the Schema section, choose dbo. In the
Tables section, choose nowhere. Then, choose Select.
13) On the Finish dataset creation page, leave the default selections, and choose
Visualize.
14) In the Fields list section, drag and drop ename and salary to the Field Wells
section.
Expected Output:

⬛ Successful creation of RDS MS SQL Express instance

⬛ Sample data inserted into the database

⬛ Connection to QuickSight established

⬛ Bar chart or table showing student marks visualized

Conclusion:

In this practical, we successfully created a Microsoft SQL Express RDS instance on AWS,
inserted sample records, and connected the data to Amazon QuickSight for visualization. This
demonstrates how cloud-based databases and BI tools can be used together for efficient data
analysis.
Assignment No .: 3

Name : Shinde Jotiram Navanath


Class : T.E. AI&DS
Roll.NO : 25

Aim: To set up a WordPress website using AWS Lightsail and enhance its scalability and
storage capabilities by connecting it to an object storage bucket, thereby separating media files
from the main server and improving performance.

Outcomes:

By the end of this project, you will be able to:

1. Launch a WordPress site on Amazon Lightsail.


2. Configure object storage using Amazon Lightsail’s Object Storage feature.
3. Connect the WordPress site to the bucket, allowing media files (images, videos, etc.)
to be stored externally.
4. Optimize performance by offloading media content from the local server to the object
storage.
5. Understand real-world deployment techniques using cloud services.

Requirements:

1. Technical Knowledge:

• Basic understanding of WordPress and web hosting.


• Familiarity with cloud computing and AWS Lightsail.
• Basic Linux commands (for SSH access if required).

2. Tools & Services:

• AWS Account (with Lightsail enabled)


• Lightsail instance for WordPress
• Lightsail Object Storage bucket
• FileZilla or similar FTP client (optional for file management)
• WordPress plugin (like WP Offload Media Lite or Media Cloud)

3. Software/Plugins:

• WordPress installed on Lightsail


• Required WordPress plugin to integrate S3-compatible storage
• Access key & secret key for Lightsail object storage
Procedure :

Step 1: Sign up for AWS

Amazon Lightsail requires an AWS account. Sign up for AWS, or sign in to AWS if you
already have an account.

Step 2: Create a WordPress instance

Complete the following steps to get your WordPress instance up and running. For more
information, see Create a Lightsail instance.

To create a Lightsail instance for WordPress

1. Sign in to the Lightsail console.


2. On the Instances section of the Lightsail home page, choose Create instance.

3. Choose the AWS Region and Availability Zone for your instance.
4. Choose the image for your instance as follows:
a. For Select a platform, choose Linux/Unix.
b. For Select a blueprint, choose WordPress.
5. Choose an instance plan.
A plan includes a machine configuration (RAM, SSD, vCPU) at a low, predictable
cost, plus a data transfer allowance.
6. Enter a name for your instance. Resource names:
a. Must be unique within each AWS Region in your Lightsail account.
b. Must contain 2 to 255 characters.
c. Must start and end with an alphanumeric character or number.
d. Can include alphanumeric characters, numbers, periods, dashes, and
underscores.
7. Choose Create instance.
8. To view the test blog post, go to the instance management page and copy the public
IPv4 address shown in the upper-right corner of the page. Paste the address into the
address field of an internet-connected web browser. The browser displays the test
blog post.

Step 3: Configure your WordPress instance

You can configure your WordPress instance by using a guided, step-by-step workflow, or
you can complete the individual tasks. Using either option, you will configure the following:

• A registered domain name – Your WordPress site needs a domain name that is easy
to remember. Users will specify this domain name to access your WordPress site. For
more information, see Register and manage domains for your website in Lightsail.
• DNS management – You must decide how to manage the DNS records for your
domain. A DNS record tells the DNS server which IP address or hostname a domain
or subdomain is associated with. A DNS zone contains the DNS records for your
domain. For more information, see Understanding DNS in Lightsail.
• A Static IP address – The default public IP address for your WordPress instance
changes if you stop and start your instance. When you attach a static IP address to
your instance, it stays the same even if you stop and start your instance. For more
information, see View and manage IP addresses for Lightsail resources.
• An SSL/TLS certificate – After you create a validated certificate and install it on
your instance, you can enable HTTPS for your WordPress website so that traffic that
is routed to the instance through your registered domain is encrypted using HTTPS.
For more information, see Secure your WordPress site with HTTPS on Lightsail.
Step 4: Get the admin password for your WordPress website

The default password to sign in to the administration dashboard of your WordPress website is
stored on the instance. Complete the following steps to get the password.

To get the default password for the WordPress administrator

1. Open the instance management page for your WordPress instance.


2. On the WordPress panel, choose Retrieve default password. This expands Access
default password at the bottom of the page.

3. Choose Launch CloudShell. This opens a panel at the bottom of the page.
4. Choose Copy and then paste the contents into the CloudShell window. You can either
put your cursor at the CloudShell prompt and press Ctrl+V, or you can right-click to
open the menu and then choose Paste.
5. Make a note of the password displayed in the CloudShell window. You need this to
sign in to the administration dashboard of your WordPress website.

Step 5: Sign in to the administration dashboard of your WordPress website

Now that you have the password for the administration dashboard of your WordPress
website, you can sign in. In the administration dashboard, you can change your user
password, install plugins, change the theme of your website, and more.

Complete the following steps to sign in to the administration dashboard of your WordPress
website.

To sign in to the administration dashboard

1. Open the instance management page for your WordPress instance.


2. On the WordPress panel, choose Access WordPress Admin.
3. On the Access your WordPress Admin Dashboard panel, under Use public IP
address, choose the link with this format:

http://public-ipv4-address./wp-admin

4. For Username or Email Address, enter user.


5. For Password, enter the password obtained in the previous step.
6. Choose Log in.

You are now signed in to the administration dashboard of your WordPress website where you
can perform administrative actions. For more information about administering your
WordPress website, see the WordPress Codex in the WordPress documentation.
Additional information

Here are some additional steps that you can perform after launching a WordPress instance in
Amazon Lightsail:

• Configure WordPress with a Lightsail content delivery network


• Create a snapshot of your Linux or Unix instance
• Enable or disable automatic snapshots for instances or disks
• Create and attach additional block storage disks to your Linux-based instances

Conclusion :

In this project, we successfully set up a fully functional WordPress website on AWS Lightsail
and connected it to a Lightsail Object Storage bucket. By offloading media files to object
storage, we improved the website’s performance, scalability, and storage efficiency. This
setup not only reduces the load on the main server but also ensures faster content delivery and
easier media management. Overall, integrating Lightsail services for both hosting and storage
provides a cost-effective and powerful solution for modern web deployments.

You might also like