A registered Application Auto Scaling entry can cause AWS CloudFormation and AWS CDK deployments to fail when a SageMaker AI endpoint is updated. An AWS blog post presents an approach for updating the endpoint and its scaling in a single deployment.
The approach uses a reusable AWS CDK construct with CloudFormation custom resources. These deregister auto scaling before the endpoint update and register it again afterward. This is intended to avoid a conflict between the existing scaling registration and the endpoint change during deployment.
The approach is aimed at teams managing SageMaker AI endpoints with CDK who want to change automatic scaling alongside the endpoint. The summary provided does not include implementation steps, code, or details about the construct’s limitations. The original post provides further detail on building the reusable construct. Source: AWS Machine Learning Blog