AWS POLICY
自己常用的policy,分享出来,希望大家可以用得到,以后在此基础上持续更新:
受限的合作方:
{
“Version”: “2012-10-17″,
“Statement”: [
{
“Sid”: “Stmt1384767876001″,
“Effect”: “Allow”,
“Resource”: [“arn:aws:s3:::bucketname”],
“Condition”:{“StringLike”:{“s3:prefix”:[“music/partner/${aws:username}/*”]}},
“Action”: [“s3:*”]
},
{
“Action”:[“s3:*”],
“Effect”:”Allow”,
“Resource”: [“arn:aws:s3:::bucketname/music/partner/${aws:username}/*”]
}
]
}
受限的资源:
{
“Version”: “2012-10-17″,
“Statement”: [
{
“Sid”: “Stmt1384767876001″,
“Effect”: “Allow”,
“Resource”: [“arn:aws:s3:::bucketname”],
“Condition”:{“StringLike”:{“s3:prefix”:[“h5/*”]}},
“Action”: [“s3:*”]
},
{
“Action”:[“s3:*”],
“Effect”:”Allow”,
“Resource”: [“arn:aws:s3:::bucketname/h5/*”]
}
]
}
EC2;
{
“Version”: “2012-10-17″,
“Statement”: [
{
“Action”: “ec2:*”,
“Effect”: “Allow”,
“Resource”: “*”
},
{
“Effect”: “Allow”,
“Action”: “elasticloadbalancing:*”,
“Resource”: “*”
},
{
“Effect”: “Allow”,
“Action”: “cloudwatch:*”,
“Resource”: “*”
},
{
“Effect”: “Allow”,
“Action”: “autoscaling:*”,
“Resource”: “*”
}
]
}