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年前273ビュー
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ