Ccpractical 9
Ccpractical 9
Theory:
Amazon Web Service(AWS):
Amazon Web Services (AWS) is a cloud computing platform offered by
Amazon. It provides a wide range of on-demand services like computing power,
storage, and databases, allowing businesses to scale and manage their IT resources
efficiently. AWS offers services such as EC2 for virtual servers, S3 for scalable
storage, RDS for managed databases, and Lambda for serverless computing. By
using AWS, companies can reduce infrastructure costs, improve flexibility, and
deploy applications globally with ease.
AWS TOOLS:
Services
….and much more.
AWS EC2:
Amazon Web Service EC2 is a web service which is provided by the AWS
cloud which is secure, resizable, and scalable. These virtual machines are pre-
configured with the operating systems and some of the required software. Instead of
managing the infrastructure AWS will do that so you can just launch and terminate
the EC2 instance whenever you want. You can scale up and down the EC2
instance depending on the incoming traffic. The other advantage of AWS EC2 is
that you need to pay only for how much you use it is like the pay-as-you-go model.
Steps:-
1. Search the AWS console on Google and click on AWS console
2. Click on Sign in
6.Click on instances
7.Click Launch Instance
Install Apache:
Start Apache:
From your local machine, use the scp command to upload files:
SSH into the instance and move the files to the Apache root directory:
With this setup, our Amazon Linux-based EC2 instance should be serving our static
web page successfully.
*Hosting a Static Web Page using AWS S3 service
Steps:
1. Create an S3 Bucket
1. Go to Your Bucket
o In the S3 dashboard, click the bucket you just created.
2. Upload Files:
o Click Upload and select your index.html file and any other static
assets (e.g., CSS, JS, images).
o Click Upload to confirm.
3. Configure the Bucket for Static Website Hosting
json
Copy code
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::<bucket-name>/*"
}
]
}
o Click Save.
*Uploading the file in Amazon S3 and Transfer file from one bucket
to another bucket in S3
Amazon Simple Storage Service (Amazon S3) is an object storage service that
offers industry-leading scalability, data availability, security, and performance.
Customers of all sizes and industries can use Amazon S3 to store and protect any
amount of data for a range of use cases, such as data lakes, websites, mobile
applications, backup and restore, archive, enterprise applications, IoT devices, and big
data analytics.
Steps:
1. click on S3 services
Click on upload.
Conclusion:
In this practical we learned about AWS tools(AWS CodeDeploy
tools) and AWS services ( AWS EC2,AWS S3) with their
implementation.