Resource: aws_sagemaker_endpoint_configuration

Provides a SageMaker endpoint configuration resource.

Example Usage

Basic usage:

resource "aws_sagemaker_endpoint_configuration" "ec" {
  name = "my-endpoint-config"

  production_variants {
    variant_name           = "variant-1"
    model_name             = aws_sagemaker_model.m.name
    initial_instance_count = 1
    instance_type          = "ml.t2.medium"
  }

  tags = {
    Name = "foo"
  }
}

Argument Reference

This resource supports the following arguments:

production_variants

core_dump_config

routing_config

serverless_config

data_capture_config

capture_options

capture_content_type_header

async_inference_config

client_config

output_config

notification_config

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

import {
  to = aws_sagemaker_endpoint_configuration.test_endpoint_config
  id = "endpoint-config-foo"
}

Using terraform import, import endpoint configurations using the name. For example:

% terraform import aws_sagemaker_endpoint_configuration.test_endpoint_config endpoint-config-foo