Resource: aws_sagemaker_endpoint

Provides a SageMaker Endpoint resource.

Example Usage

Basic usage:

resource "aws_sagemaker_endpoint" "e" {
  name                 = "my-endpoint"
  endpoint_config_name = aws_sagemaker_endpoint_configuration.ec.name

  tags = {
    Name = "foo"
  }
}

Argument Reference

This resource supports the following arguments:

Deployment Config

Blue Green Update Config

Rolling Update Policy

Traffic Routing Configuration
Maximum Batch Size
Rollback Maximum Batch Size
Canary Size
Linear Step Size

Auto Rollback Configuration

Alarms

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

import {
  to = aws_sagemaker_endpoint.test_endpoint
  id = "my-endpoint"
}

Using terraform import, import endpoints using the name. For example:

% terraform import aws_sagemaker_endpoint.test_endpoint my-endpoint