Set up a CloudFront distribution for Amazon S3



CloudFront distribution for Amazon S3, here are the steps:
  1. Go to the Amazon S3 console at https://console.aws.amazon.com/s3/.
  2. Select the bucket that you want to use as the origin of your CloudFront distribution.
  3. Go to the "Properties" tab and click on "Static website hosting".
  4. Select "Use this bucket to host a website" and make note of the "Endpoint" URL. This will be the origin domain name for your CloudFront distribution.
  5. Go to the CloudFront console at https://console.aws.amazon.com/cloudfront/.
  6. Click on the "Create Distribution" button.
  7. Select the "Web" delivery method.
  8. Under "Origin Domain Name", paste the endpoint URL of your S3 bucket that you have noted in step 4.
  9. (Optional) Configure other settings such as the cache behavior, distribution settings, and SSL certificate.
  10. Click on the "Create Distribution" button to create your distribution.

It's important to note that CloudFront will only distribute files that are publicly accessible in your S3 bucket. So, make sure that your S3 bucket has the appropriate permissions set.



Also, you will need to Wait for CloudFront distribution status to be "Deployed" before you can use the CloudFront URL. Once it is deployed, you will be given a domain name (e.g., d12345678.cloudfront.net) that you can use to access your content via CloudFront.




Post a Comment

Previous Post Next Post

Contact Form