Overview
| Excerpt |
|---|
| CLI command | remove-autoscaling-policy | | Description | Delete an auto-scaling policy. | Note |
|---|
You will not be allowed to delete auto-scaling polices that are being used by deployed applications. If an autoscaling policy is being used by a deployed application, you will have to first undeploy the application to be able to delete the corresponding auto-scaling policy. |
| | Command format | remove-autoscaling-policy <AUTOSCALING_POLICY_ID> |
|
Parameter definitions
| Short option | Long option | Description | Required | Example value |
|---|
| N/A | N/A | Auto-scaling policy ID. | Yes | autoscaling-policy-1
|
Example
Use case: Removing an auto-scaling policy with the ID: autoscaling-policy-1.
| Code Block |
|---|
remove-autoscaling-policy autoscaling-policy-1 |
Sample output
| Code Block |
|---|
Successfully deleted Auto-scaling policy |