Docsity

Cloud Computing Lab Assignment 11 Mini-Project SPPU TE AIDS 2024 Pattern, Study Guides, Projects, Research of Computer Science

Partial preview of the text

Download Cloud Computing Lab Assignment 11 Mini-Project SPPU TE AIDS 2024 Pattern and more Study Guides, Projects, Research Computer Science in PDF only on Docsity!

Host a portfolio or documentation site using Amazon S3 (AWS).

Create S3 Bucket

To create a bucket:

  1. Sign into your account and access the AWS Management Console, where you can locate the Amazon S3 console. For quick access, you can use this URL: https://console.aws.amazon.com/s3/. Image Source: AWS  Select the Create bucket option.

AWS

 Go to Files and folders , and select the Add files option.  Select the file you want to upload, and then select the Open option.  Select the Upload option.

Creating a CloudFront Distribution

Now, you need to create a CloudFront distribution to serve the content from your S3 bucket. In this example, the distribution uses an Amazon S3 origin with Origin Access Control (OAC):

  1. Open the CloudFront console.
  2. Select Create distribution and select your S3 bucket as the origin domain.
  3. Enable OAC by selecting Origin access control settings under Origin > Origin access.
  1. Create a new OAC with default settings.

"AWS:SourceArn": "arn:aws:cloudfront::123456789012:distribution/EDFDVBD6EXAMPLE" } } } ] } Accessing Content via CloudFront Finally, you can access the content through your CloudFront distribution:

  1. Record the domain name of your CloudFront distribution (e.g., d121698abdecf8.cloudfront.net).
  1. Combine the CloudFront domain name with the path to your main page (e.g., /index.html). For example: curl https://d121698abdecf8.cloudfront .net/index.html
  2. Upload new content to your S3 bucket and access it via CloudFront using the appropriate URL, for example: aws s3 cp new-page.html s3://example-bucket-name/ curl https://d121698abdecf8.cloudfront.net/new-page.html Or you can simply access this url via your browser.