[英]S3 bucketpolicy and EMR - example
I can not find example of S3 BucketPolicy that allows only EMR to read data from it.我找不到仅允许 EMR 从中读取数据的 S3 BucketPolicy 示例。 EMR would be in the same account as S3.
EMR 将与 S3 在同一个帐户中。 Anyone has any example to share?
任何人都有任何例子可以分享吗?
I guess this will work.我想这会奏效。
{
"Id": "Policy1590853624822",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1590853616750",
"Action": "s3:*",
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::my-bucket",
"arn:aws:s3:::my-bucket/*"
],
"Principal": {
"AWS": [
"arn:aws:elasticmapreduce:us-east-1:1234567890:cluster/*"
]
}
}
]
}
You can create your own policies here in aws policy generator您可以在 aws policy generator中创建自己的策略
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.