resource "google_compute_autoscaler" "${MyResource}" {
         name = "example-name"
         zone = "example-zone"
         target = "example-target"
         autoscaling_policy = {
             max_replicas    = 5
             min_replicas    = 1
             cooldown_period = 60
      
             cpu_utilization {
                 target = 0.5
             }
         }
      }

      Terraform language logogoogle_compute_autoscaler

      Terraform snippets

      The code declares a resource named "google_compute_autoscaler" with the following configuration:

      name: "example-name"

      zone: "example-zone"

      target: "example-target"

      autoscaling_policy: { max_replicas: 5 min_replicas: 1 cooldown_period: 60 cpu_utilization: { target: 0.

      Shortcut: tf_google_compute_autoscaler

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.