Resource: aws_sagemaker_pipeline

Provides a SageMaker Pipeline resource.

Example Usage

Basic usage

resource "aws_sagemaker_pipeline" "example" {
  pipeline_name         = "example"
  pipeline_display_name = "example"
  role_arn              = aws_iam_role.example.arn

  pipeline_definition = jsonencode({
    Version = "2020-12-01"
    Steps = [{
      Name = "Test"
      Type = "Fail"
      Arguments = {
        ErrorMessage = "test"
      }
    }]
  })
}

Argument Reference

The following arguments are supported:

Parallelism Configuration

Pipeline Definition S3 Location

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import pipelines using the pipeline_name. For example:

import {
  to = aws_sagemaker_pipeline.test_pipeline
  id = "pipeline"
}

Using terraform import, import pipelines using the pipeline_name. For example:

% terraform import aws_sagemaker_pipeline.test_pipeline pipeline