Resource: aws_sagemaker_image

Provides a SageMaker Image resource.

Example Usage

Basic usage

resource "aws_sagemaker_image" "example" {
  image_name = "example"
  role_arn   = aws_iam_role.test.arn
}

Argument Reference

This resource supports the following arguments:

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 SageMaker Code Images using the name. For example:

import {
  to = aws_sagemaker_image.test_image
  id = "my-code-repo"
}

Using terraform import, import SageMaker Code Images using the name. For example:

% terraform import aws_sagemaker_image.test_image my-code-repo