AWS
AWS
Index Sign
6. Write the steps to connect with Windows server by using AWS EC2
10. How to connect with a launched instance of Linux (putty & putty gen
software)
11. Implement linux server on EC2 AWS instance to program the following.
a. Install a compiler and run hello.c program
15. Create a bucket and upload objects and enable it by using URL to get
public access.
18. Implement & Configure load balancing with all necessary steps.
20 Create a private cloud on Google Drive and grant permission for the user
Practical 1. Create an AWS account.
Objective : The objective of creating an AWS (Amazon Web Services) account is to enable individuals,
organizations, and businesses to access and use AWS cloud services, resources, and infrastructure. AWS
provides a wide range of cloud computing services, including computing power, storage, databases,
machine learning, analytics, networking, content delivery, and more. Creating an AWS account allows you
to:
● Access AWS Services: Gain access to a vast array of cloud services, from virtual servers (EC2)
to scalable storage (S3) and advanced machine learning (SageMaker).
● Scalability: Easily scale your infrastructure and resources up or down to meet your changing
needs, ensuring that you only pay for what you use.
● Flexibility: Choose from a variety of operating systems, programming languages, databases, and
other tools to run your applications.
● Security and Compliance: Use AWS's security features and compliance certifications to secure
your data and applications, ensuring they meet industry standards and regulatory requirements.
● Cost-Efficiency: Optimize your infrastructure and reduce operational costs by utilizing AWS's
pay-as-you-go pricing model.
Step 1: First Open your web browser and navigate to AWS Free Tier Page
Step 2: On middle click of Create a Free Account
Step 3: Issue the details which you want to use to log in to your AWS account and click on Continue
• Email address: Provide the mail id which hasn’t been registered yet with Amazon AWS.
• Password: Type your password.
• Confirm password: Authenticate the password.
• AWS Account name: Choose a name for your account. You can change this name in your account
settings after you sign up
Step 4: Phone verification: Here you will be taken to an identity verification page that will already have
your phone number, so you just have to select either “Text message or Voice call” Provide a valid phone
number, Solve the captcha, and then click on Send SMS or Call Me Now(depending upon your selection).
Step 5 : Enter your Purpose of Account Registration
Step 6: After clicking on Send SMS or Call me Now, you will immediately receive a call or SMS from
Amazon, for verification code, Enter your code then click on Verify Code.
Step 7: Support plan: AWS support offers a selection of plans to meet your business needs.
Select your suitable plan then click continue.
● Cost Monitoring: AWS Budgets provides insights into your AWS cost and usage data, allowing
you to monitor your spending in real-time. This helps you keep track of your expenses and
ensure they align with your budgetary goals.
● Budget Setting: The service allows you to set specific budgets for different aspects of your
AWS usage, such as overall costs, service costs, or specific cost and usage patterns. You can
create custom budgets that align with your business objectives.
● Cost Alerts: AWS Budgets enables you to set up cost and usage alerts. When your actual
spending approaches or exceeds your budget thresholds, AWS Budgets will notify you via
email or SNS (Simple Notification Service). This helps you take timely action to avoid
unexpected overages.
Step 1: Sign in to the AWS Management Console and open the AWS Cost Management console at
https://console.aws.amazon.com/cost-management/home.
Step 5: Under Set alert threshold, for Threshold, enter the amount that must be reached for you to be
notified. This can be either an absolute value or a percentage.
(Optional) Under Notification preferences, for Email recipients, enter the email addresses that you want the
alert to notify. Separate multiple email addresses with commas. A notification can be sent to a maximum of
10 email addresses.
(Optional) Under Notification preferences, for Amazon SNS Alerts, enter the Amazon Resource Name
(ARN) for your Amazon SNS topic. For instructions on how to create a topic, see Creating an Amazon
SNS topic for budget notifications.
Step1: Once logged in, navigate to the EC2 dashboard. You can do this by searching for "EC2" in the
AWS Management Console's search bar or by selecting "Compute" and then "EC2" under the "Services"
menu.
Step 4: In the "Add Storage" step, you can specify the size and type of the root volume for your instance.
You can also add additional volumes if necessary.
Step : In the "Configure Security Group" step, you'll need to configure the security group rules. Security
groups act as firewalls to control inbound and outbound traffic to your instance. Ensure that you allow
Remote Desktop Protocol (RDP) for Windows instances if you plan to access them remotely.
Step 5: If you haven't already created a key pair, you will be prompted to create one. This key pair is used
to securely access your Windows Server instance. Download and save the key pair (.pem file) in a secure
location.
Step 6: After selecting or creating a key pair, click the "Launch Instances" button.
Practical 4: Connect the launch instance , 2/2 status check and decrypt password by
using RDP client .
Step 1: Select the Instance
Step 2: You'll be taken to the "Instances" view, where you can see the status of your Windows Server
instance as it starts. Once the instance is in a "running" state, you can connect to it using RDP.
Step 3 : In the "Instances" view, you can see the status of your instance(s) as they transition from "pending"
to "running." You can monitor the status changes there. Once the instance is in the "running" state, it means
it has successfully launched, and you can then proceed to connect to it or use it for your intended purposes.
Practical 4. Terminate the launched window server instance from AWS EC2.
Step 1: In the EC2 dashboard, click on "Instances" in the left navigation pane to view a list of your running
instances.
Step 2: With the instance selected, click the "Actions" button at the top of the dashboard, and from the
dropdown menu, select "Instance State" and then choose "Terminate."
Step 3: AWS will now initiate the termination process. The instance will first be stopped if it was running,
and then it will be permanently deleted. This process may take a few minutes.
Practical 5. Write the steps to launch a linux server by using AWS EC2.
Step 1: Once logged in, navigate to the EC2 dashboard. You can do this by searching for "EC2" in the
AWS Management Console's search bar or by selecting "Compute" and then "EC2" under the "Services"
menu.
Step 2 : In the "Choose an Amazon Machine Image (AMI)" step, select a Linux AMI. AWS provides
various Linux distributions and versions. Choose the one that suits your requirements (e.g., Amazon Linux,
Ubuntu, CentOS, etc.).
Step 3: If you haven't already created a key pair, you will be prompted to create one. This key pair is used
to securely access your Linux server instance. Download and save the key pair (.pem file) in a secure
location
Step 4 :After selecting or creating a key pair, click the "Launch Instances" button.
Step 5 : You'll be taken to the "Instances" view, where you can see the status of your Linux server instance
as it starts. Once the instance is in a "running" state, it means it has successfully launched, and you can
proceed to access it via SSH.
Practical 6.. Write the steps to connect with the window server by using AWS EC2.
Step 1: Create a Aws Ec2 Window Instance
Step 2: In the "Configure Security Group" step, you'll need to configure the security group rules. Security
groups act as firewalls to control inbound and outbound traffic to your instance. Ensure that you allow
Remote Desktop Protocol (RDP) for Windows instances if you plan to access them remotely.
Step 3: Select The key pair for Instance
Step 6 : Open your RDP client and configure a new connection with the public IP address or public DNS
name of your Windows Server instance. You may also need to specify the username you want to use for
the remote desktop session. By default, this is usually "Administrator."
Step 7 : After configuring the connection, click "Connect" or "Connect" in your RDP client. You will be
prompted to enter the administrator's username and password. If you haven't changed the password, you
can retrieve it from the AWS Management Console.
Practical 7. How to launch a website on a windows server using EC2.
Step 6 : Open your RDP client and configure a new connection with the public IP address or public DNS
name of your Windows Server instance. You may also need to specify the username you want to use for
the remote desktop session. By default, this is usually "Administrator."
Step 7: After configuring the connection, click "Connect" or "Connect" in your RDP client. You will be
prompted to enter the administrator's username and password. If you haven't changed the password, you
can retrieve it from the AWS Management Console.
Step 8:To host a website, you'll need web server software. You can use Microsoft Internet Information
Services (IIS) as a common choice for hosting websites on Windows Server. Follow these steps to install
and configure IIS:
Step 11 : Once IIS is installed, you can configure your website by creating a new site, specifying the
content directory, and setting up bindings (e.g., domain names or IP addresses).
Practical 8. Terminate the launched linux server instance from AWS EC2.
Step 1: In the EC2 dashboard, click on "Instances" in the left navigation pane to view a list of your running
instances. Locate the Linux server instance you want to terminate.
Step 2: Click the checkbox next to the Linux server instance you want to terminate. It will become selected.
Step 3 : With the instance selected, click the "Actions" button at the top of the dashboard, and from the
dropdown menu, select "Instance State" and then choose "Terminate."
Step 4 : AWS will now initiate the termination process. The instance will be stopped if it was running, and
then it will be permanently deleted. This process may take a few minutes.
Step 2: In the IAM dashboard, click on "Users" in the left navigation pane to view the list of existing IAM
users.
Step 3 : To create a new IAM user, click the "Add user" button at the top of the dashboard.
Step 4 : User name: Enter a unique name for the IAM user.
Step 5 : After the user is successfully created, you'll see a confirmation page. This page provides important
information, such as the user's access key and secret access key (if you selected "Programmatic access").
Make sure to download and securely store the access keys because they will only be displayed once.
10. How to connect with a launched instance of linux (putty & putty gen software).
11. Implement linux server on EC2 AWS instance to program following.
a. Install a compiler and run hello.c program
After connect
Commands :
Sudo su –
yum update -y
yum install -y gcc
12. Implement linux server on EC2 AWS instance to program following.
a. Run a C program multiplying two matrices namely A and B where order of matrices is given by the
user.
Practical 13. Create a bucket and upload object by using S2 AWS service.
Step 1: Once logged in, navigate to the S3 dashboard. You can do this by searching for "S3" in the AWS
Management Console's search bar or by selecting "Storage" and then "S3" under the "Services" menu.
Step 3: In the "Bucket name" field, enter a unique and globally-unique name for your bucket. Bucket
names must be unique across all of AWS.
Step 4: Review your configuration and click the "Create bucket" button to create your S3 bucket.
Practical 14. Upload objects and enable it by using URL to get public access in the created bucket.
15. Delete that created bucket.
17. Create VPC and implement EC2 services on it.
18. Implement & Configure load balancing with all necessary steps.
19. How to handle a cloud shell. Explain it
Using AWS CloudShell is a convenient way to access the AWS Command Line Interface (CLI) and
various AWS services directly from your web browser,
Login to the AWS Management Console: Ensure you have an AWS account
and are logged into the AWS Management Console.
Access AWS CloudShell: Once you're logged in, you can access AWS CloudShell
from the AWS Management Console. You can find it in the top-right corner of the AWS Management
Console, labeled as "AWS CloudShell."
Initialize the Environment: The first time you access CloudShell, it may take a moment to initialize your
environment. Once it's ready, you'll be presented with a command-line interface.
Use the AWS CLI and AWS SDKS: CloudShell comes pre-configured with the AWS CLI and various AWS
SDKs.
1. You can use these tools to interact with AWS services. For example, you can run AWS CLI
commands, Python scripts, or
3. or configuring your shell as per your preferences. You can use package managers like pip, npm, or
brew to install
4.additional to
Save Your Work: AWS CloudShell provides you with home directory
storage that is persistent, even across sessions. This means you can save your scripts, configuration
files, and other data within your home directory.
Exit CloudShell: When you're done with your session, you can type exit to exit CloudShell. Your home
directory data will persist for the next time you log in.
20. Create a private cloud on google drive and grant permission for the user.
4. Add Users:
In the sharing dialog, enter the email addresses of the users you want to grant access to.
Choose the appropriate access level (e.g., Viewer, Commenter, Editor) based on the level of access you
want to provide.
6. Send Invitations:
Click on "Send" to send invitations to the specified email addresses.
Users will receive an email notification and can access the shared folder through their Google Drive.