Skip to content

Instantly share code, notes, and snippets.

@scross01
Last active January 5, 2018 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scross01/f8ed69d43ed82e7b7f748faa6794eb08 to your computer and use it in GitHub Desktop.
Save scross01/f8ed69d43ed82e7b7f748faa6794eb08 to your computer and use it in GitHub Desktop.
Terraform and Oracle Cloud Infrastructure Classic Orchestrations - Example 2
resource "opc_compute_instance" "MyInstance" {
name = "vm-1"
shape = "oc3"
boot_order = [ 1 ]
label = "vm-1"
networking_info {
index = 0
shared_network = true
seclists = [ "${opc_compute_security_list.wlsadmin_seclist.name}" ]
nat = [ "${opc_compute_ip_reservation.ipres1.name}" ]
}
networking_info {
index = 1
ipnetwork = "${opc_compute_ip_network.ipnet-1.name}"
vnic_sets = ["${opc_compute_vnic_set.vnicset1.name}"]
}
ssh_keys = [ "${opc_compute_ssh_key.key1.name}" ]
storage {
index = 1
volume = "${opc_compute_storage_volume.boot.name}"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment