Guig
Guig

Reputation: 10377

AWS SDK - change autoscaling group update policy

I've an autoscaling group on AWS and I'd like to change its update policy to get rolling update.

I've tried

var autoScaling = new AWS.AutoScaling(awsConfig);
autoScaling.updateAutoScalingGroup({
    AutoScalingGroupName: <some name>,
    UpdatePolicy: {
        AutoScalingReplacingUpdate: {
            WillReplace: true,
        },
    }
})

But this is failing with:

{ [UnexpectedParameter: Unexpected key 'UpdatePolicy' found in params]
  message: 'Unexpected key \'UpdatePolicy\' found in params',
  code: 'UnexpectedParameter',
  time: Tue Nov 08 2016 22:15:42 GMT-0800 (PST) }

Upvotes: 1

Views: 265

Answers (1)

George Whitaker
George Whitaker

Reputation: 1668

UpdatePolicy is a feature of AWS CloudFormation. It is not a feature found in the AWS API itself so none of the SDKs will have it. This is the documentation from CF.

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html

Upvotes: 3

Related Questions