ibm_compute_autoscale_policy

    0

    0

    lucycodes42

    Terraform snippets

    The ibm_compute_autoscale_policy resource defines an autoscale policy for an IBM Compute Node using the scale_type and scale_amount fields. The scale_group_id field defines the autoscale group that this policy is associated with. The triggers field contains two One Time triggers and one repeating trigger. The type field is set to RESOURCE_USE, and the watches field contains two watches that monitor the host.cpu.percent metric. The operator field is set to > and the value field is set to 80. The period field is set to 120.

    Shortcut: tf_ibm_compute_autoscale_policy

    resource "ibm_compute_autoscale_policy" "${myResourceName}" {
       name = "${myResourceName}"
       scale_type = ""
       scale_amount = 
       cooldown = 
       scale_group_id = "${ibm_compute_autoscale_group.myResourceName-autoscale-group.id}"
       triggers = {
           type = "RESOURCE_USE"
           watches = {
               metric = "host.cpu.percent"
               operator = ">"
               value = "80"
               period = 120
           }
       }
       triggers = {
           type = "ONE_TIME"
           date = "2009-11-11T23:00:00+00:00"
       }
       triggers = {
           type = "REPEATING"
           schedule = "0 1 ? * MON,WED *"
       }
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.