如何使用Api Gateway直接上传到S3?

时间:2017-10-26 14:57:25

标签: amazon-web-services amazon-s3 aws-api-gateway

我想用api网关直接上传到s3。

 file(png/jpeg)(upload)

用户----------------------> ApiGateway --------------------------------------> S3

用户---------------------->自定义授权器-------> api / upload -----> S3

有可能吗?

1 个答案:

答案 0 :(得分:0)

通过API网关无法扩展尺寸。通过API时,有10MB的限制。

我们这样做了。

授权:

CloudFront - > APIGateway - > Lambda(将SignedURL返回到发布到S3)

图片上传:

CloudFront - > S3 - > S3 EventTrigger - > Lambda(后期图像处理)

希望它有所帮助。