Amazon web services ';生产变量AllTraffic的所有映像都存在,用于创建模型的执行角色有权访问它们';

Amazon web services ';生产变量AllTraffic的所有映像都存在,用于创建模型的执行角色有权访问它们';,amazon-web-services,tensorflow,amazon-sagemaker,tensorflow-serving,aws-policies,Amazon Web Services,Tensorflow,Amazon Sagemaker,Tensorflow Serving,Aws Policies,我看到这个链接:,它与我的问题相似,但不同,我的错误是: Please make sure all images included in the model for the production variant AllTraffic exist, and that the execution role used to create the model has permissions to access them. 由于AWS帐户的安全设置,我无法将SageMaker fullaccess附加到

我看到这个链接:,它与我的问题相似,但不同,我的错误是:

Please make sure all images included in the model for the production variant AllTraffic exist, and that the execution role used to create the model has permissions to access them.
由于AWS帐户的安全设置,我无法将SageMaker fullaccess附加到执行角色,但我添加了:

{
            "Effect": "Allow",
            "Action": [
                "ecr:SetRepositoryPolicy",
                "ecr:CompleteLayerUpload",
                "ecr:BatchGetImage",                
                "ecr:BatchDeleteImage",
                "ecr:UploadLayerPart",
                "ecr:DeleteRepositoryPolicy",
                "ecr:InitiateLayerUpload",
                "ecr:DeleteRepository",
                "ecr:PutImage"
            ],
            "Resource": "arn:aws:ecr:*:*:repository/*sagemaker*"
        },
在这个执行角色的策略和附件中,我是SageMaker的新手,有人知道我为什么会出现这个错误吗

以下是一些代码:

from sagemaker.tensorflow.serving import Model

model = Model(model_data=model_data,
              role=role,
              framework_version='1.15.2',
              sagemaker_session=sagemaker_session,
              name=name)

predictor = model.deploy(initial_instance_count=1,
    instance_type='ml.m4.2xlarge',
    endpoint_name=name,
    update_endpoint=False)