本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
AWS 受管政策:AmazonDataZoneSageMakerProvisioning
此 AmazonDataZoneSageMakerProvisioning 政策 DataZone 會授予 Amazon 與 Amazon 互動所需的許可 SageMaker。
{ "Version": "2012-10-17", "Statement": [ { "Sid": "CreateSageMakerStudio", "Effect": "Allow", "Action": [ "sagemaker:CreateDomain" ], "Resource": [ "*" ], "Condition": { "StringEquals": { "aws:CalledViaFirst": [ "cloudformation.amazonaws.com" ] }, "ForAnyValue:StringEquals": { "aws:TagKeys": [ "AmazonDataZoneEnvironment" ] }, "Null": { "aws:TagKeys": "false", "aws:ResourceTag/AmazonDataZoneEnvironment": "false", "aws:RequestTag/AmazonDataZoneEnvironment": "false" } } }, { "Sid": "DeleteSageMakerStudio", "Effect": "Allow", "Action": [ "sagemaker:DeleteDomain" ], "Resource": [ "*" ], "Condition": { "StringEquals": { "aws:CalledViaFirst": [ "cloudformation.amazonaws.com" ] }, "ForAnyValue:StringLike": { "aws:TagKeys": [ "AmazonDataZoneEnvironment" ] }, "Null": { "aws:TagKeys": "false", "aws:ResourceTag/AmazonDataZoneEnvironment": "false" } } }, { "Sid": "AmazonDataZoneEnvironmentSageMakerDescribePermissions", "Effect": "Allow", "Action": [ "sagemaker:DescribeDomain" ], "Resource": "*", "Condition": { "StringEquals": { "aws:CalledViaFirst": [ "cloudformation.amazonaws.com" ] } } }, { "Sid": "IamPassRolePermissions", "Effect": "Allow", "Action": [ "iam:PassRole" ], "Resource": [ "arn:aws:iam::*:role/sm-provisioning/datazone_usr*" ], "Condition": { "StringEquals": { "iam:PassedToService": [ "glue.amazonaws.com", "lakeformation.amazonaws.com", "sagemaker.amazonaws.com" ], "aws:CalledViaFirst": [ "cloudformation.amazonaws.com" ] } } }, { "Sid": "AmazonDataZonePermissionsToCreateEnvironmentRole", "Effect": "Allow", "Action": [ "iam:CreateRole", "iam:DetachRolePolicy", "iam:DeleteRolePolicy", "iam:AttachRolePolicy", "iam:PutRolePolicy" ], "Resource": [ "arn:aws:iam::*:role/sm-provisioning/datazone_usr*" ], "Condition": { "StringEquals": { "aws:CalledViaFirst": [ "cloudformation.amazonaws.com" ], "iam:PermissionsBoundary": "arn:aws:iam::aws:policy/AmazonDataZoneSageMakerEnvironmentRolePermissionsBoundary" } } }, { "Sid": "AmazonDataZonePermissionsToManageEnvironmentRole", "Effect": "Allow", "Action": [ "iam:GetRole", "iam:GetRolePolicy", "iam:DeleteRole" ], "Resource": [ "arn:aws:iam::*:role/sm-provisioning/datazone_usr*" ], "Condition": { "StringEquals": { "aws:CalledViaFirst": [ "cloudformation.amazonaws.com" ] } } }, { "Sid": "AmazonDataZonePermissionsToCreateSageMakerServiceRole", "Effect": "Allow", "Action": [ "iam:CreateServiceLinkedRole" ], "Resource": [ "arn:aws:iam::*:role/aws-service-role/sagemaker.amazonaws.com/AWSServiceRoleForAmazonSageMakerNotebooks" ], "Condition": { "StringEquals": { "aws:CalledViaFirst": [ "cloudformation.amazonaws.com" ] } } }, { "Sid": "AmazonDataZoneEnvironmentParameterValidation", "Effect": "Allow", "Action": [ "ec2:DescribeVpcs", "ec2:DescribeSubnets", "sagemaker:ListDomains" ], "Resource": "*" }, { "Sid": "AmazonDataZoneEnvironmentKMSKeyValidation", "Effect": "Allow", "Action": [ "kms:DescribeKey" ], "Resource": "arn:aws:kms:*:*:key/*", "Condition": { "Null": { "aws:ResourceTag/AmazonDataZoneEnvironment": "false" } } }, { "Sid": "AmazonDataZoneEnvironmentGluePermissions", "Effect": "Allow", "Action": [ "glue:CreateConnection", "glue:DeleteConnection" ], "Resource": [ "arn:aws:glue:*:*:connection/dz-sm-athena-glue-connection-*", "arn:aws:glue:*:*:connection/dz-sm-redshift-cluster-connection-*", "arn:aws:glue:*:*:connection/dz-sm-redshift-serverless-connection-*", "arn:aws:glue:*:*:catalog" ], "Condition": { "StringEquals": { "aws:CalledViaFirst": [ "cloudformation.amazonaws.com" ] } } } ] }