AWS Amazon SageMaker Image Version
This page shows how to write Terraform and CloudFormation for Amazon SageMaker Image Version and write them securely.
aws_sagemaker_image_version (Terraform)
The Image Version in Amazon SageMaker can be configured in Terraform with the resource name aws_sagemaker_image_version
. The following sections describe 2 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_sagemaker_image_version" "sagemaker_image_version" {
count = var.enable_sagemaker_image_version ? 1 : 0
image_name = var.sagemaker_image_version_image_name != "" ? var.sagemaker_image_version_image_name : (var.enable_sagemaker_image ? aws_sagemaker_image.sagemaker_image.0.id : null)
base_image = var.sagemaker_image_version_base_image
resource "aws_sagemaker_image_version" "sagemaker_image_version" {
count = var.enable_sagemaker_image_version ? 1 : 0
image_name = var.sagemaker_image_version_image_name != "" ? var.sagemaker_image_version_image_name : (var.enable_sagemaker_image ? aws_sagemaker_image.sagemaker_image.0.id : null)
base_image = var.sagemaker_image_version_base_image
Parameters
-
arn
optional computed - string -
base_image
required - string -
container_image
optional computed - string -
id
optional computed - string -
image_arn
optional computed - string -
image_name
required - string -
version
optional computed - number
Explanation in Terraform Registry
Provides a Sagemaker Image Version resource.
AWS::SageMaker::ImageVersion (CloudFormation)
The ImageVersion in SageMaker can be configured in CloudFormation with the resource name AWS::SageMaker::ImageVersion
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
Explanation in CloudFormation Registry
Creates a version of the SageMaker image specified by
ImageName
. The version represents the Amazon Container Registry (ECR) container image specified byBaseImage
.Note You can use the
DependsOn
attribute to specify that the creation of a specific resource follows another. You can use it for the following use cases. For more information, seeDependsOn
attribute.
DependsOn
can be used to establish a parent/child relationship betweenImageVersion
andImage
where theImageVersion
DependsOn
theImage
.DependsOn
can be used to establish order amongImageVersion
s within the sameImage
namespace. For example, if ImageVersionBDependsOn
ImageVersionA and both share the same parentImage
, then ImageVersionA is version N and ImageVersionB is N+1.
Frequently asked questions
What is AWS Amazon SageMaker Image Version?
AWS Amazon SageMaker Image Version is a resource for Amazon SageMaker of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.
Where can I find the example code for the AWS Amazon SageMaker Image Version?
For Terraform, the asrkata/SebastianUA-terraform and SebastianUA/terraform source code examples are useful. See the Terraform Example section for further details.