简体   繁体   English

S3 bucketpolicy 和 EMR - 示例

[英]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.

相关问题 EMR 上 Spark 中的 S3 SlowDown 错误 - S3 SlowDown error in Spark on EMR EMR 5.28 无法在 s3 上加载镶木地板文件 - EMR 5.28 not able to load parquet files on s3 AWS S3 - 使用正则表达式在 S3 中搜索文件的示例 - AWS S3 - Example of searching files in S3 using regex AWS EMR 步骤找不到从 s3 导入的 jar - AWS EMR step doesn't find jar imported from s3 无法让 Spark 将神奇的 output committer 用于带有 EMR 的 s3 - Can't get Spark to use the magic output committer for s3 with EMR 如何在无需在请求 header 中提及 sse 和 key-id 的情况下从 EMR 加密 S3 中的数据? - How to encrypt data in S3 from EMR without the need to mention sse and key-id in request header? Amazon S3 SLA 如何使用示例 - How does Amazon S3 SLA works with example 无法在 aws EMR 集群中使用配置单元创建外部表,其中位置指向某个 S3 位置 - Unable to create external table using hive in aws EMR cluster where location pointing to some S3 location 当我们有 S3 时,为什么我们在 EMR 上需要 HDFS - Why do we need HDFS on EMR when we have S3 AWS EMR 添加步骤:How to add multiple jars from s3 in --jars and --driver-class-path options? - AWS EMR add step: How to add multiple jars from s3 in --jars and --driver-class-path options?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM