0
0
llucycodes42
The code creates a resource called "ibm_compute_monitor" and assigns the guest_id of the vm instance as the resource's identifier. It also assigns the ip address of the vm instance as the resource's identifier. The code specifies that the resource's query type is "1" and that the response action is "1" (that is, the resource will be notified when a change occurs). The code specifies that the resource should wait for five cycles (that is, five seconds) and that only the owner of the resource (in this case, the root account) should be notified. Finally, the code specifies that the resource should be notified to users listed in the "notified_users" property.
Shortcut: tf_ibm_compute_monitor
resource "ibm_compute_monitor" "${myResourceName}" {
guest_id = "${ibm_compute_vm_instance.myResourceName.id}"
ip_address = "${ibm_compute_vm_instance.myResourceName.ipv4_address}"
query_type_id = 1
response_action_id = 1
wait_cycles = 5
notified_users = [6575505]
}