Skip to content

Unable to specify custom role for Sagemaker #182

@nasxisbest

Description

@nasxisbest

Issue Description

Unable to use Sagemaker role when provisioning Sagemaker resources. Here's how I am used to do it through AWS Console:

Image

Found this in Sagemaker Python library docs:

Image

Tried leveraging with:

backend_args = {
    "autogluon_sagemaker_estimator_kwargs": {
        "role": "arn:aws:iam::176253007097:role/service-role/SageMaker-winnie-ml",
    }
}

cloud_predictor.fit(
    job_name="insights-autogluon-refund-ml",
    predictor_init_args=predictor_init_args,
    predictor_fit_args=predictor_fit_args,
    backend_kwargs=backend_args,
)

But got this error:

Image
TypeError: autogluon.cloud.utils.ag_sagemaker.AutoGluonSagemakerEstimator() got multiple values for keyword argument 'role'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions