Answers: <p>Got it from <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html" rel="nofollow noreferrer">official documentation</a> of UpdatePolicy . Indeed, we can suspend processes by using the <code>UpdatePolicy</code> attribute for the <code>AWS::AutoScaling::AutoScalingGroup</code> resource : </p>
  
  <ul>
  <li><p>So instead of <code>SuspendedProcesses</code>, the right term is <code>SuspendProcesses</code>.</p></li>
  <li><p>Also instead of putting <code>SuspendProcesses</code> under <code>Properties</code>, it should be under <code>UpdatePolicy &gt; AutoScalingRollingUpdate</code> .</p></li>
  </ul>
  
  <p>_</p>
  
  <pre><code>  MyAutoScalingGroup:
      Type: AWS::AutoScaling::AutoScalingGroup
      Properties:
        DesiredCapacity: 1
        MinSize: 1
        MaxSize: 1
        LaunchConfigurationName: !Ref MyLaunchConfiguration
        AvailabilityZones: !GetAZs
      UpdatePolicy:
        AutoScalingRollingUpdate:
          SuspendProcesses:
          - AZRebalance
          - Terminate
  </code></pre>
  
Answers: CC BY-SA 4.0
Answers: 2018-06-13T22:57:13.850Z
Answers: This suspends the processes during updates to the ASG via the CF stack, not in general (CF resumes the processes when it is done updating the ASG).
Answers: raylu
Answers: CC BY-SA 3.0
Answers: 2017-12-14T17:02:49.020Z
Answers: 2017-12-14T17:02:49.020Z
Answers: Abdennour TOUMI
Body: <p>I have the following autoscaling as a Cloudformation template : </p>
  
  <pre><code>  MyAutoScalingGroup:
      Type: AWS::AutoScaling::AutoScalingGroup
      Properties:
        DesiredCapacity: 1
        MinSize: 1
        MaxSize: 1
        LaunchConfigurationName: !Ref MyLaunchConfiguration
        AvailabilityZones: !GetAZs
  </code></pre>
  
  <p>I am struggling with defining <a href="http://docs.aws.amazon.com/autoscaling/latest/userguide/as-suspend-resume-processes.html" rel="nofollow noreferrer">suspended processes</a> inside Cloudformation template.</p>
  
  <p>Trying an intuitive approach ( adding it as property) and it does not work at all : </p>
  
  <pre><code>  MyAutoScalingGroup:
      Type: AWS::AutoScaling::AutoScalingGroup
      Properties:
        DesiredCapacity: 1
        MinSize: 1
        MaxSize: 1
        LaunchConfigurationName: !Ref MyLaunchConfiguration
        AvailabilityZones: !GetAZs
        SuspendedProcesses:
          - AZRebalance
          - Terminate
  </code></pre>
  
Comments: CC BY-SA 3.0
Comments: 2017-12-14T14:26:46.527Z
Comments: What are you trying to do ? It's unclear what you're trying to accomplish here.
Comments: Tensibai
Comments: CC BY-SA 3.0
Comments: 2017-12-14T17:03:18.273Z
Comments: Hello @Tensibai, I got it. Thank you for your interesting.
Comments: Abdennour TOUMI
Comments: CC BY-SA 4.0
Comments: 2019-01-17T23:42:41.933Z
Comments: I followed the same, but once the autoscaling group is created without having any SuspenProcess properties.
Comments: Sai
Tags: <amazon-web-services><autoscaling><infrastructure-as-code><yaml>
Title: Suspend autoscaling processes through Cloudformation template
UserDisplayName: Abdennour TOUMI
ThreadText: # Suspend autoscaling processes through Cloudformation template
  
  (Asked by: username_0 on 2017-12-14)
  
  I have the following autoscaling as a Cloudformation template :
  
  ```
    MyAutoScalingGroup:
      Type: AWS::AutoScaling::AutoScalingGroup
      Properties:
        DesiredCapacity: 1
        MinSize: 1
        MaxSize: 1
        LaunchConfigurationName: !Ref MyLaunchConfiguration
        AvailabilityZones: !GetAZs
  
  ```
  
  I am struggling with defining [suspended processes](http://docs.aws.amazon.com/autoscaling/latest/userguide/as-suspend-resume-processes.html) inside Cloudformation template.
  
  Trying an intuitive approach ( adding it as property) and it does not work at all :
  
  ```
    MyAutoScalingGroup:
      Type: AWS::AutoScaling::AutoScalingGroup
      Properties:
        DesiredCapacity: 1
        MinSize: 1
        MaxSize: 1
        LaunchConfigurationName: !Ref MyLaunchConfiguration
        AvailabilityZones: !GetAZs
        SuspendedProcesses:
          - AZRebalance
          - Terminate
  
  ```
  
  **Tags:** amazon-web-services, autoscaling, infrastructure-as-code, yaml
  
  > **Comments:**
  > **username_1**: What are you trying to do ? It's unclear what you're trying to accomplish here.  
  > **username_0**: Hello @username_1, I got it. Thank you for your interesting.  
  > **username_2**: I followed the same, but once the autoscaling group is created without having any SuspenProcess properties.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-12-14. Score: 0 | Accepted answer
  
  Got it from [official documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html) of UpdatePolicy . Indeed, we can suspend processes by using the `UpdatePolicy` attribute for the `AWS::AutoScaling::AutoScalingGroup` resource :
  
  * So instead of `SuspendedProcesses`, the right term is `SuspendProcesses`.
  * Also instead of putting `SuspendProcesses` under `Properties`, it should be under `UpdatePolicy > AutoScalingRollingUpdate` .
  
  \_
  
  ```
    MyAutoScalingGroup:
      Type: AWS::AutoScaling::AutoScalingGroup
      Properties:
        DesiredCapacity: 1
        MinSize: 1
        MaxSize: 1
        LaunchConfigurationName: !Ref MyLaunchConfiguration
        AvailabilityZones: !GetAZs
      UpdatePolicy:
        AutoScalingRollingUpdate:
          SuspendProcesses:
          - AZRebalance
          - Terminate
  
  ```
  
  > **Comments:**
  > **username_3**: This suspends the processes during updates to the ASG via the CF stack, not in general (CF resumes the processes when it is done updating the ASG).  
  
  ---
  
  