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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠