1 Answer
- Newest
- Most votes
- Most comments
0
1a. CloudFront can provide benefits like bringing everything under one domain and providing SSL termination. 1b. No other option without moving the client site off s3
- not tested but code should be like this
response = s3_client.generate_presigned_post(
Bucket=bucket_name,
Key=object_name,
Fields={
"Content-Type": "video/mp4"
},
Conditions=[
{"Content-Type": "video/mp4"},
["content-length-range", 0, 10485760] # 10MB limit
],
ExpiresIn=3600
)
- Configure S3 Event Notifications to trigger SNS and configure a API gateway web socket like below to read from that SNS topic.
answered a year ago
Relevant content
- asked 10 months ago