Security - Dynamic Image Transformation for Amazon CloudFront

Security

When you build systems on AWS infrastructure, security responsibilities are shared between you and AWS. This shared responsibility model reduces your operational burden because AWS operates, manages, and controls the components including the host operating system, the virtualization layer, and the physical security of the facilities in which the services operate. For more information about AWS security, visit AWS Cloud Security.

Important

This solution creates CloudFront and API Gateway resources that are publicly accessible. Be aware that while this is likely appropriate for publicly facing websites, it might not be appropriate for all customer use cases for this solution.

AWS offers several options for end-to-end security, such as AWS Identity and Access Management (IAM), Amazon Cognito user pools, AWS Certificate Manager, and CloudFront signed URLs. For private image handling use cases, AWS recommends using CloudFront signed URLs and implementing an API Gateway Lambda authorizer with CloudFront to secure your stack.