创建s3
上传文件
访问资源
CloudFront
创建CloudFront
cname
IAM
创建s3用户
设置安全凭证
访问密钥
控制台登录
s3 权限策略
AmazonS3Smartdao-imgAccess
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:ListStorageLensConfigurations",
"s3:ListAccessPointsForObjectLambda",
"s3:GetAccessPoint",
"s3:PutAccountPublicAccessBlock",
"s3:GetAccountPublicAccessBlock",
"s3:ListAllMyBuckets",
"s3:ListAccessPoints",
"s3:PutAccessPointPublicAccessBlock",
"s3:ListJobs",
"s3:PutStorageLensConfiguration",
"s3:ListMultiRegionAccessPoints",
"s3:CreateJob"
],
"Resource": "*"
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": "s3:*",
"Resource": "arn:aws:s3:::xxxxxxx" # 替换为自己的桶
},
{
"Sid": "VisualEditor2",
"Effect": "Allow",
"Action": "s3-object-lambda:*",
"Resource": "arn:aws:s3:::xxxxxxx" # 替换为自己的桶
}
]
}
标签:s3,创建,aws,Effect,Allow,Sid,Action
From: https://www.cnblogs.com/wangguishe/p/17448972.html