Company
Date Published
Author
Leonardo Freitas dos Santos
Word count
1106
Language
English
Hacker News points
None

Summary

This summary provides a high-level overview of building an S3 media bucket with a CloudFront distribution that serves media files, performs on-demand image transformation, and authenticates incoming requests. The process involves creating an S3 bucket, configuring CORS rules and public access controls, and setting up CloudFront to distribute the media files using an Origin Access Identity (OAI). Terraform is used to manage the infrastructure as code, and a CloudFront distribution is created with a meaningful comment, enabled, and configured to use the OAI for authentication. The final output displays the URL of the CloudFront distribution, which can be tested by uploading media files to the S3 bucket and accessing them using the CloudFront domain.