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
resource "aws_sagemaker_endpoint" "this" {
name = "rs-model-a-Staging"
endpoint_config_name = aws_sagemaker_endpoint_configuration.this.name
}
resource "aws_sagemaker_endpoint" "diamonds_predictor_endpoint" {
name = "diamonds-predictor-endpoint"
endpoint_config_name = "diamonds-predictor-endpoint-config"
resource "aws_sagemaker_endpoint" "this" {
endpoint_config_name = var.endpoint_config_name
name = var.name
tags = var.tags
}
resource "aws_sagemaker_endpoint" "e" {
name = var.sagemaker_e
endpoint_config_name = aws_sagemaker_endpoint_configuration.ec.name
tags = {
Name = "endpoint"
Parameters
-
arn
optional computed - string -
endpoint_config_name
required - string -
id
optional computed - string -
name
optional computed - string -
tags
optional - map from string to string
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
-
RetainAllVariantProperties
optional - Boolean -
EndpointName
optional - String -
ExcludeRetainedVariantProperties
optional - List of VariantProperty -
EndpointConfigName
required - String -
DeploymentConfig
optional - DeploymentConfig -
Tags
optional - List of Tag
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.