AWS Amazon SageMaker Endpoint

This page shows how to write Terraform and CloudFormation for Amazon SageMaker Endpoint and write them securely.

aws_sagemaker_endpoint (Terraform)

The Endpoint in Amazon SageMaker can be configured in Terraform with the resource name aws_sagemaker_endpoint. The following sections describe 4 examples of how to use the resource and its parameters.

Example Usage from GitHub

endpoint.tf#L12
resource "aws_sagemaker_endpoint" "this" {
  name                 = "rs-model-a-Staging"
  endpoint_config_name = aws_sagemaker_endpoint_configuration.this.name
}
main.tf#L4
resource "aws_sagemaker_endpoint" "diamonds_predictor_endpoint" {
    name                 = "diamonds-predictor-endpoint"
    endpoint_config_name = "diamonds-predictor-endpoint-config"
main.tf#L7
resource "aws_sagemaker_endpoint" "this" {
  endpoint_config_name = var.endpoint_config_name
  name                 = var.name
  tags                 = var.tags
}

main.tf#L40
resource "aws_sagemaker_endpoint" "e" {
  name                 = var.sagemaker_e
  endpoint_config_name = aws_sagemaker_endpoint_configuration.ec.name

  tags = {
    Name = "endpoint"

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Provides a SageMaker Endpoint resource.

AWS::SageMaker::Endpoint (CloudFormation)

The Endpoint in SageMaker can be configured in CloudFormation with the resource name AWS::SageMaker::Endpoint. 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

Use the AWS::SageMaker::Endpoint resource to create an endpoint using the specified configuration in the request. Amazon SageMaker uses the endpoint to provision resources and deploy models. You create the endpoint configuration with the AWS::SageMaker::EndpointConfig resource. For more information, see Deploy a Model on Amazon SageMaker Hosting Services in the Amazon SageMaker Developer Guide.

Frequently asked questions

What is AWS Amazon SageMaker Endpoint?

AWS Amazon SageMaker Endpoint 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 Endpoint?

For Terraform, the dominodatalab/domino-research, mattecora/DiamondClassifier and niveklabs/aws source code examples are useful. See the Terraform Example section for further details.