Updating the docs for Instances
This commit is contained in:
parent
8a5379479a
commit
82e57870bb
|
@ -19,6 +19,13 @@ on your instance resources as an extra safety measure.
|
||||||
## Example Usage
|
## Example Usage
|
||||||
|
|
||||||
```
|
```
|
||||||
|
resource "opc_compute_ip_network" "test" {
|
||||||
|
name = "internal-network"
|
||||||
|
description = "Terraform Provisioned Internal Network"
|
||||||
|
ip_address_prefix = "10.0.1.0/24"
|
||||||
|
public_napt_enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
resource "opc_compute_storage_volume" "test" {
|
resource "opc_compute_storage_volume" "test" {
|
||||||
name = "internal"
|
name = "internal"
|
||||||
size = 100
|
size = 100
|
||||||
|
@ -37,18 +44,11 @@ resource "opc_compute_instance" "test" {
|
||||||
|
|
||||||
networking_info {
|
networking_info {
|
||||||
index = 0
|
index = 0
|
||||||
model = "e1000"
|
|
||||||
nat = ["ippool:/oracle/public/ippool"]
|
nat = ["ippool:/oracle/public/ippool"]
|
||||||
shared_network = true
|
shared_network = true
|
||||||
}
|
}
|
||||||
|
|
||||||
networking_info {
|
|
||||||
index = 1
|
|
||||||
ip_network = "${opc_compute_ip_network.foo.id}"
|
|
||||||
vnic = "testing-vnic-name"
|
|
||||||
shared_network = false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Argument Reference
|
## Argument Reference
|
||||||
|
|
Loading…
Reference in New Issue