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.

1 Answer
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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions