- Newest
- Most votes
- Most comments
Based on your configuration for hosting files on S3 in the sa-east-1 (São Paulo) region, I can provide some insights about your setup.
Your current configuration with public read access via bucket policy is correctly set up for basic static website hosting. This allows anonymous users to access your index.html file directly through the S3 endpoint you provided.
However, there are some considerations regarding performance and access:
-
Regional Latency: Using S3 in sa-east-1 will provide good performance for users in South America, but potentially higher latency for users accessing from other geographic locations. This is because the content is being served directly from the São Paulo region without any edge caching.
-
CloudFront Integration: Your plan to implement CloudFront is a good approach. CloudFront would provide several key benefits:
- Content would be cached at edge locations closer to your users globally
- Reduced latency for users outside the sa-east-1 region
- Additional security features and better handling of traffic spikes
-
Transfer Acceleration: For your question about S3 Transfer Acceleration - this feature is primarily beneficial for uploading content to S3 buckets, not for content delivery to end users. For your use case of delivering game assets to mobile clients, CloudFront would be more appropriate than enabling Transfer Acceleration.
-
CORS Configuration: Your CORS setup allowing all origins ("*") for GET requests is appropriate if you need the content to be accessible from various domains or applications.
For mobile game asset delivery, implementing CloudFront in front of your S3 bucket would be highly recommended to ensure consistent performance across different regions. The direct S3 link approach is sufficient for testing but may not provide optimal performance for a production environment with users distributed globally.
Sources
Roblox file hosting on S3 sa-east-1 Public Access Configuration | AWS re:Post
Using cross-origin resource sharing (CORS) - Amazon Simple Storage Service
