本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
参考政策
-
列出 Amazon EMR 政策:此政策允许执行以下操作:
-
AllowPresignedUrl
允许生成预签名,URLs以便从 Studio 中访问 Spark 用户界面。 -
AllowClusterDiscovery
并AllowClusterDetailsDiscovery
允许列出和描述所提供区域和账户中的 Amazon EMR 集群。
{ "Version": "2012-10-17", "Statement": [ { "Sid": "AllowPresignedUrl", "Effect": "Allow", "Action": [ "elasticmapreduce:CreatePersistentAppUI", "elasticmapreduce:DescribePersistentAppUI", "elasticmapreduce:GetPersistentAppUIPresignedURL", "elasticmapreduce:GetOnClusterAppUIPresignedURL" ], "Resource": [ "arn:aws:elasticmapreduce:
region
:accountID
:cluster/*" ] }, { "Sid": "AllowClusterDetailsDiscovery", "Effect": "Allow", "Action": [ "elasticmapreduce:DescribeCluster", "elasticmapreduce:ListInstances", "elasticmapreduce:ListInstanceGroups", "elasticmapreduce:DescribeSecurityConfiguration" ], "Resource": [ "arn:aws:elasticmapreduce:region
:accountID
:cluster/*" ] }, { "Sid": "AllowClusterDiscovery", "Effect": "Allow", "Action": [ "elasticmapreduce:ListClusters" ], "Resource": "*" } ] } -
-
创建 Amazon EMR 集群策略:此策略允许执行以下操作:
-
AllowEMRTemplateDiscovery
允许在 Service Catalog 中搜索亚马逊EMR模板。Studio 和 Studio Classic 使用它来显示可用模板 -
AllowSagemakerProjectManagement
允许创建什么是 SageMaker 项目?。在 Studio 或 Studio Classic 中 AWS Service Catalog ,访问权限通过管理什么是 SageMaker 项目?。
提供的IAM策略中定义的策略JSON授予这些权限。Replace(替换)
region
以及accountID
在将对 AWS 账单列表复制到您角色的内联政策之前,使用您的实际区域和账户 ID 值。{ "Version": "2012-10-17", "Statement": [ { "Sid": "AllowEMRTemplateDiscovery", "Effect": "Allow", "Action": [ "servicecatalog:SearchProducts" ], "Resource": "*" }, { "Sid": "AllowSagemakerProjectManagement", "Effect": "Allow", "Action": [ "sagemaker:CreateProject", "sagemaker:DeleteProject" ], "Resource": "arn:aws:sagemaker:
region
:accountID
:project/*" } ] } -
-
域、用户配置文件和空间更新操作策略:以下策略授予在指定区域和 AWS 账户内更新 SageMaker 域、用户配置文件和空间的权限。
{ "Version": "2012-10-17", "Statement": [ { "Sid": "SageMakerUpdateResourcesPolicy", "Effect": "Allow", "Action": [ "sagemaker:UpdateDomain", "sagemaker:UpdateUserprofile", "sagemaker:UpdateSpace" ], "Resource": [ "arn:aws:sagemaker:
region>
:accountID
:domain/*", "arn:aws:sagemaker:region
:accountID
:user-profile/*" ] } ] }