JS_CC Lab Manual Final
JS_CC Lab Manual Final
: 1
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:
Requirements:
Procedure:
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.
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
1. In the AWS Console, search for "IAM" and open Identity and Access
Management.
2. Click "Users" → "Add 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.
1. Download AWS CLI for Windows from AWS CLI Official Download.
2. Run the .msi installer file.
• If AWS CLI is configured correctly, this will list your S3 buckets (or
return an empty list if no buckets exist).
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.
8. Once ready, AWS Cloud9 opens in a web-based IDE where you can start coding.
Assignment No .: 2
Aim: To create an Amazon RDS MS SQL Express database, load sample data, and visualize
it using Amazon QuickSight.
Outcome:
Requirements:
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.
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.
Query:
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
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:
2) On the qsdatabase page, in the Connectivity & security section, copy the
VPC id.
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
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:
Requirements:
1. Technical Knowledge:
3. Software/Plugins:
Amazon Lightsail requires an AWS account. Sign up for AWS, or sign in to AWS if you
already have an account.
Complete the following steps to get your WordPress instance up and running. For more
information, see Create a Lightsail 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.
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.
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.
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.
http://public-ipv4-address./wp-admin
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:
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.