go-aws-s3-presigned-post-app-engine
显示AWS S3预签名POST的示例。
在本地运行
1.您需要安装并运行Go App Engine SDK。
2.克隆此仓库。
3.创建一个公开读取的AWS S3测试存储桶
值区政策:
{
"Version": "2012-10-17",
"Id": "Policy1234567890",
"Statement": [{
"Sid": "Stmt1234567890",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::bucketnamehere/*"
}]
}
4.在s3.go配置AWS凭
2021-11-15 11:43:30
3KB
Go
1