The opc_compute_ip_association
resource creates and manages an association between an IP address and an instance in an Oracle Cloud Infrastructure Compute Classic identity domain, for the Shared Network.
resource "opc_compute_ip_association" "instance1_reservation1" { vcable = "${opc_compute_instance.test_instance.vcable}" parent_pool = "ipreservation:${opc_compute_ip_reservation.reservation1.name}" }
The following arguments are supported:
vcable
- (Required) The vcable of the instance to associate the IP address with.
parent_pool
- (Required) The pool from which to take an IP address. To associate a specific reserved IP address, use the prefix ipreservation:
followed by the name of the IP reservation. To allocate an IP address from a pool, use the prefix ippool:
, e.g. ippool:/oracle/public/ippool
.
The following attributes are exported:
name
The name of the IP Association IP Associations can be imported using the resource name
, e.g.
$ terraform import opc_compute_ip_association.association1 example
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/opc/r/opc_compute_ip_association.html