Skip to content

Accept pipeline parameters as estimator/processor roles #3414

@navaj0

Description

@navaj0

Describe the feature you'd like

Accept pipeline parameters as estimator/processor roles

According to the SDK API doc, the role can’t be assigned to a pipeline parameter.

  • image_uri (str or PipelineVariable) – The container image to use for training.
  • role (str) – An AWS IAM role (either name or full ARN). The Amazon SageMaker training jobs and APIs that create Amazon SageMaker endpoints use this role to access training data and model artifacts. After the endpoint is created, the inference code might use the IAM role, if it needs to access an AWS resource.
  • instance_count (int or PipelineVariable) – Number of Amazon EC2 instances to use for training. Required if instance_groups is not set.

The SDK must be doing some compile time verification over the role (existence etc.) that prevents it from accepting a pipeline parameter.

How would this feature be used? Please describe.

Some users are interested to use SageMaker pipelines for a multi-tenant application. As part of their solution they want to execute a SageMaker pipeline estimator for every tenant with a dedicated IAM role (i.e., the estimator only has access to a tenant-dedicated S3 bucket).

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions