Last active
January 5, 2018 15:23
-
-
Save scross01/f8ed69d43ed82e7b7f748faa6794eb08 to your computer and use it in GitHub Desktop.
Terraform and Oracle Cloud Infrastructure Classic Orchestrations - Example 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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