Resource: aws_sagemaker_image_version

Provides a SageMaker Image Version resource.

Example Usage

Basic usage

resource "aws_sagemaker_image_version" "test" {
  image_name = aws_sagemaker_image.test.id
  base_image = "012345678912.dkr.ecr.us-west-2.amazonaws.com/image:latest"
}

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 Image Versions using the name. For example:

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

Using terraform import, import SageMaker Image Versions using the name. For example:

% terraform import aws_sagemaker_image_version.test_image my-code-repo