技巧官方一手精选

用 AWS CDK 自定义资源解决 SageMaker AI 端点自动伸缩更新失败问题

Orchestrating SageMaker AI endpoint auto scaling with AWS CDK

精选理由

SageMaker 端点一挂自动伸缩,CDK 部署就报错,这篇文章给你一个能复用的 construct,一次部署搞定更新。

更新已注册 Application Auto Scaling 的 SageMaker AI 端点时,AWS CloudFormation 和 AWS CDK 的部署会失败。文章给出一个可复用的 AWS CDK construct,借助 CloudFormation 自定义资源自动完成伸缩配置的注销与重新注册。这样端点和伸缩策略可以在同一次部署中一起更新,无需手动操作。

图片来源 · AWS Machine Learning Blog
原文 · AWS Machine Learning Blog

Orchestrating SageMaker AI endpoint auto scaling with AWS CDK

Updating a SageMaker AI endpoint that has Application Auto Scaling registered makes AWS CloudFormation and AWS CDK deployments fail. This post shows how to build a reusable AWS CDK construct with CloudFormation custom resources that deregisters and re-registers auto scaling automatically, so you can update the endpoint and its scaling in a single deployment.