Enter Credit ordebit card details 2 will be debited from
₹
your account.
14.
Enter the detailsas asked Primary purpose is personal use Ownership type is
Individual Enter PAN number if you have Click on the consent check box
and click continue
15.
Select text orVoice call option select India enter your mobile
number and type the security check code and click continue
16.
Enter the verifycode that you get to your entered
mobile number and click continue
AWS-Services
Amazon WebServices (AWS) offers a vast and diverse range of cloud services, totaling
over 200.
These services cover computing power, storage, databases, machine learning, analytics,
networking, security, and more.
AWS enables users to deploy and manage applications without the need for physical
hardware, providing scalable and flexible solutions for businesses and individuals.
With a variety of tools and services, AWS caters to different needs, allowing users to build,
deploy, and scale applications efficiently in the cloud.
The services are designed to meet a wide array of requirements, making AWS a
comprehensive and popular cloud computing platform.
27.
AWS-Service- EC2 Instance
An Amazon EC2 (Elastic Compute Cloud) instance is like a virtual computer that you can
rent from Amazon Web Services (AWS).
It provides scalable computing capacity in the cloud and allows you to run applications
and services without investing in or maintaining physical hardware.
EC2 instances come in various sizes, allowing you to choose the amount of CPU, memory,
storage, and networking capacity that best fits your needs.
You can easily launch, manage, and terminate instances based on your requirements,
making it a flexible and cost-effective solution for hosting applications, websites, and
other computing workloads in the cloud.
On the topright corner, change the region to Asia Pacific (Mumbai) changing the location in
AWS helps you enhance the speed of your applications, save costs, and comply with rules about
where your data should be stored, ensuring a better overall experience for your users.
31.
Once your regionis changed, the dashboard reloads and
now on top right corner, we can see Mumbai
Under Ubuntu wehave many versions select any
Free tier to avoid billing better go for default
38.
Select 64-bit (x86)which is default x86 being a common processor architecture
for traditional servers, while Arm is known for its energy-efficient design often
used in mobile devices and newer cloud-based systems.
39.
An AMI ID(Amazon Machine Image Identifier) is a unique identifier for a pre-configured virtual
server template in AWS, capturing the necessary information to launch an instance, including the
operating system, applications, and settings.
40.
Next is InstanceType select default use Free tier only
An instance type in AWS defines the hardware of a virtual server, specifying its CPU, memory,
storage, and networking capacity to meet different application requirements.
Next is Keypair Click on Create new key pair
In AWS, a key pair is a set of security credentials, consisting of a public key used to encrypt
information and a private key used to decrypt it, allowing secure access to instances and ensuring
data protection.
Under network settingswe will use default values
Network settings in AWS refer to the configuration and management of how virtual machines
and services communicate with each other and the internet within the AWS cloud
environment.
47.
Check the twoboxes: Allow HTTPS and Allow HTTP traffic
Allowing HTTPS and HTTP traffic from the internet in AWS network settings enables secure and regular web
communication, allowing users to access your web-based applications or websites while ensuring data
confidentiality and accessibility.
48.
Next is theConfiguration Storage: Default is 8GB, for Ubuntu we can extend up to 10GB
Configuration storage in AWS refers to the secure and centralized management of settings, preferences,
and parameters for various services and applications, ensuring consistent and organized control of your
resources.
49.
On the rightside, we can see the summary of the instance created
now click on Launch instance in the bottom
50.
In few secondsthe instance will be launched from the
region selected
51.
The instance issuccessfully launched we can either click
on instances or scroll down
52.
Click on ViewAll instances on the bottom right corner
53.
The instance willstart running in few seconds check the instance state
We will connectusing SSH client:
"Connecting to an instance in AWS means establishing a secure and remote access to your virtual
server, allowing you to manage and interact with it from your local computer."
57.
An SSH clientis a tool that allows you to securely connect to and manage your AWS instance by
providing a secure command-line interface for communication.
This line ofcode is like making a special box using NGINX (a type of web server)
and Alpine Linux (a lightweight system). The "COPY . /usr/share/nginx/html" part is
putting our website files (whatever is in the current folder) into the box, so when it
runs, NGINX shows our custom content from that folder. It's a way of saying, "Hey,
NGINX, use these files for the website!"
Build a Dockerimage as shown:
The command "sudo docker build -t html-webapplication ." creates a Docker package for a
web application called "html-webapplication" using the instructions in the current directory. This
package contains everything the application needs to run, making it easy to share and deploy.
93.
Next Run theDocker container as shown:
The command "sudo docker run -d -p 80:80 html-webapplication:latest" launches a background Docker
container for a web application. It connects your local machine's port 80 to the container's port 80, letting
you access the web app. The "html-webapplication:latest" specifies the image to use for the application.
94.
Now, we canaccess the web-application using the Public IP address as
shown Copy the address and paste in any browser