EC2 Blue/Green CodeDeploy fails with "You must specify a PredictiveScalingConfiguration"

0

I followed the instructions in https://docs.amazonaws.cn/en_us/autoscaling/ec2/userguide/predictive-scaling-customized-metric-specification.html to try to add predictive auto-scaling to the current deployment group in my running Blue/Green deployment system (I use the deployment mode where it copies the ASG at each deployment instead of swapping the same two in/out). I did NOT enable scale-from-forecast (yet).

When I run a CodePipeline release that then tries to run the blue/green deployment it fails on the "provisioning instances" (step 1) with "You must specify a PredictiveScalingConfiguration", which I'm pretty sure is what I've just done (I look at the ASG, and it has one, and is showing a forecast).

I have to delete the predictive scaling completely from the ASG in order to get it to work.

Any tips would be greatly appreciated.

Tony K
已提问 2 年前274 查看次数
1 回答
0

Hello,

Currently Predictive Scaling Policies on an ASG are not integrated with CodeDeploy. CodeDeploy is generally able to transfer your configuration to new ASGs, but only on ASG features its specifically onboarded to validate all permissions and settings are in place transfer them correctly.

At this time there isn't any native workaround, and you'll either need to manually toggle it on/off, or built custom scripts that remove/add the predictive scaling policy before/after the deployment. The Internal teams for ASG and CodeDeploy are aware of this limitation, but I don't have an ETA on exactly when the feature will be added.

AWS
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则