Home icon

Orchestrating SageMaker AI endpoint auto scaling with AWS CDK

Machine Learning Blog



This article demonstrates how to use AWS CDK with CloudFormation custom resources to automatically orchestrate SageMaker AI endpoint auto scaling during configuration updates.

  • SageMaker AI requires deregistering scalable targets before updating endpoints, causing CloudFormation deployments to fail
  • Solution uses three custom resources to deregister auto scaling before endpoint updates, then re-register after the endpoint reaches InService status
  • Custom resources use explicit dependency ordering and ConfigHash properties to maintain auto scaling across deployments
  • Includes a reusable CDK construct that can be integrated into existing stacks or deployed as a standalone example
  • Asynchronous completion pattern allows waiting for endpoint readiness without blocking Lambda invocations
  • Walkthrough covers cloning the repository, configuring endpoint settings, deploying, and testing updates

The construct simplifies SageMaker AI endpoint management by automating the complex orchestration of deregistering and re-registering auto scaling during configuration changes.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Sep 22
2026
Right-size generative AI endpoints with concurrency sweeps on Amazon SageMaker AI
Oct 13
2026
Bring deep SageMaker AI expertise to your coding agent with the AWS AI/ML skill in the Agent Toolkit for AWS
Oct 22
2026
Amazon SageMaker AI announces training session APIs for serverless model customization
Oct 21
2026
Amazon SageMaker AI now supports custom sequence lengths for serverless model customization jobs

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.