Assignment No.
8 : Introduction to Amazon AWS S3: (The objective of this
practical is to learn about Amazon AWS and how to host a simple static website
using Amazon S3.
Step 1: Create an AWS Account
1. Go to (link unavailable) and sign up for an account.
2. Fill in the required information, including name, email, and password.
3. Verify your email address and set up a payment method.
Step 2: Create an S3 Bucket
1. Log in to the AWS Management Console.
2. Navigate to the S3 dashboard.
3. Click "Create bucket".
4. Enter a unique name for your bucket.
5. Choose a region for your bucket.
6. Click "Create bucket".
Step 3: Upload Website Files
1. Create a new folder on your local machine for your website files.
2. Add your website files (e.g., HTML, CSS, images) to the folder.
3. Go back to the S3 dashboard.
4. Select your bucket.
5. Click "Upload".
6. Select the files you want to upload.
7. Click "Upload".
Step 4: Configure Bucket Policy
1. Select your bucket.
2. Click "Permissions".
3. Click "Bucket policy".
4. Click "Edit".
5. Paste the following policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::<your-bucket-name>/*"
}
]
}
1. Replace <your-bucket-name> with your actual bucket name.
2. Click "Save changes".
Step 5: Enable Static Website Hosting
1. Select your bucket.
2. Click "Properties".
3. Click "Static website hosting".
4. Select "Enabled".
5. Enter your index document (e.g., index.html).
6. Click "Save changes".
Step 6: Access Your Website
1. Go to <your-bucket-name>.s3-website-<region>.(link unavailable).
2. Replace <your-bucket-name> with your actual bucket name.
3. Replace <region> with your actual region.