Closed tkilias closed 9 months ago
aws iam create-role --role-name sagemaker-role --assume-role-policy-document '{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": "sagemaker.amazonaws.com" }, "Action": "sts:AssumeRole" } ] }'
aws iam create-policy --policy-name "sagemaker-s3-access" --policy-document '{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:" ], "Resource": "" }, { "Effect": "Allow", "Action": [ "iam:CreatePolicy", "iam:CreateRole", "iam:AttachRolePolicy", "iam:DeleteRole", "iam:DeletePolicy", "iam:DetachRolePolicy" ], "Resource": "*" } ] }'
aws iam attach-role-policy --role-name sagemaker-role --policy-arn arn:aws:iam::166283903643:policy/sagemaker-s3-access aws iam attach-role-policy --role-name sagemaker-role --policy-arn arn:aws:iam::aws:policy/AmazonSageMakerFullAccess
Time needed for analysis of the issue: 3d
aws iam create-policy --policy-name "sagemaker-s3-access" --policy-document '{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:" ], "Resource": "" }, { "Effect": "Allow", "Action": [ "iam:CreatePolicy", "iam:CreateRole", "iam:AttachRolePolicy", "iam:DeleteRole", "iam:DeletePolicy", "iam:DetachRolePolicy" ], "Resource": "*" } ] }'
aws iam attach-role-policy --role-name sagemaker-role --policy-arn arn:aws:iam::166283903643:policy/sagemaker-s3-access aws iam attach-role-policy --role-name sagemaker-role --policy-arn arn:aws:iam::aws:policy/AmazonSageMakerFullAccess