Updating the instance docs

This commit is contained in:
tombuildsstuff 2017-04-07 12:17:36 +01:00
parent 833023f8fc
commit 50cfe7e359
1 changed files with 17 additions and 10 deletions

View File

@ -19,28 +19,35 @@ on your instance resources as an extra safety measure.
## Example Usage ## Example Usage
``` ```
resource "opc_compute_instance" "test_instance" { resource "opc_compute_storage_volume" "test" {
name = "test" name = "internal"
label = "test" size = 100
}
resource "opc_compute_instance" "test" {
name = "instance1"
label = "Terraform Provisioned Instance"
shape = "oc3" shape = "oc3"
imageList = "/oracle/public/oel_6.4_2GB_v1" image_list = "/oracle/public/oel_6.7_apaas_16.4.5_1610211300"
sshKeys = ["${opc_compute_ssh_key.key1.name}"]
storage {
volume = "${opc_compute_storage_volume.test.name}"
index = 1
}
networking_info { networking_info {
index = 0 index = 0
model = "e1000" model = "e1000"
nat = ["ippool:/oracle/public/ippool"] nat = ["ippool:/oracle/public/ippool"]
shared_network = true shared_network = true
} }
networking_info { networking_info {
index = 1 index = 1
ip_network = "${opc_compute_ip_network.foo.id}" ip_network = "${opc_compute_ip_network.foo.id}"
vnic = "testing-vnic-name" vnic = "testing-vnic-name"
shared_network = false shared_network = false
} }
storage {
volume = "${opc_compute_storage_volume.foo.name}"
index = 1
}
} }
``` ```