ibm_compute_autoscale_group

    0

    0

    lucycodes42

    Terraform snippets

    My resource definitions:

    resource "ibm_lb" "${myResourceName}" { connections = 250 datacenter = "" ha_enabled = false } resource "ibm_lb_service_group" "${myResourceName}-lb-service-group" { load_balancer_id = "${ibm_lb.local_lb_01.id}" allocation = 100 port = 80 routing_method = "ROUND_ROBIN" routing_type = "HTTP" } resource "ibm_compute_autoscale_group" "${myResourceName}" { name = "my-${myResourceName}" regional_group = "" cooldown = 30 minimum_member_count = 1 maximum_member_count = 10 termination_policy = "" virtual_server_id = "${ibm_lb_service_group.myResourceName-lb-service-group.id}" port = 8080 health_

    Shortcut: tf_ibm_compute_autoscale_group

    resource "ibm_lb" "${myResourceName}" {
       connections = 250
       datacenter = ""
       ha_enabled = false
    }
    resource "ibm_lb_service_group" "${myResourceName}-lb-service-group" {
       load_balancer_id = "${ibm_lb.local_lb_01.id}"
       allocation = 100
       port = 80
       routing_method = "ROUND_ROBIN"
       routing_type = "HTTP"
    }
    resource "ibm_compute_autoscale_group" "${myResourceName}" {
       name = "my-${myResourceName}"
       regional_group = ""
       cooldown = 30
       minimum_member_count = 1
       maximum_member_count = 10
       termination_policy = ""
       virtual_server_id = "${ibm_lb_service_group.myResourceName-lb-service-group.id}"
       port = 8080
       health_check = {
           type = "HTTP"
       }
       virtual_guest_member_template = {
       hostname = "my-Host"
       domain = "ibm.com"
       cores = 
       memory = 
       network_speed = 
       hourly_billing = true
       os_reference_code = ""
       local_disk = false
       disks = [25,100]
       datacenter = ""
       post_install_script_uri = ""
       user_metadata = "#!/bin/bash"
       }
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.