Skip to content

creating estimator with role name fails if role is default sagemaker service role #43

Closed

Description

@jesterhazy

if you pass a role name (instead of full ARN) to estimator constructor, and you are using default role created by SageMaker, training job will fail with "unable to assume the role" ClientError:

sagemaker-mxnet-py2-cpu-2018-01-14-15-35-12-859: Failed Reason: ClientError: SageMaker was unable to assume the role 'arn:aws:iam::<ACCOUNT>:role/AmazonSageMaker-ExecutionRole-20180114T073202'

error message shows the sdk converted role name to ARN without the 'service-role' prefix. running the same job with corrected full ARN works:

arn:aws:iam::<ACCOUNT>:role/service-role/AmazonSageMaker-ExecutionRole-20180114T075260

i encountered this error starting a training job, but I assume it would impact endpoint creation in same way.

Activity

  1. owen-t commented on Jan 16, 2018

    @owen-t
    Contributor

    Thanks for bringing this issue to our attention. We're looking into it and will post correspondence here when we have an update.

    Thanks -- Owen

  2. added a commit that references this issue on May 31, 2018
  3. added a commit that references this issue on Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions