removalPolicies

RemovalPolicy is used to select the ECS instances you want to remove from the scaling group when multiple candidates for removal exist. Optional values:

  • OldestInstance: removes the ECS instance that is added to the scaling group at the earliest point in time.

  • NewestInstance: removes the ECS instance that is added to the scaling group at the latest point in time.

  • OldestScalingConfiguration: removes the ECS instance that is created based on the earliest scaling configuration.

  • Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.