-
Notifications
You must be signed in to change notification settings - Fork 728
Closed
Labels
Description
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
Currently when creating a compute instance using oci_core_instance, it is not possible to choose an existing reserved public IP address for the "assign_public_ip" field.
An ideal solution would be another field that works with "assign_public_ip" field to choose what IP address existing within a tenancy to assign to a compute instance's private ip.
New or Affected Resource(s)
Potential Terraform Configuration
resource "oci_core_instance" "test_instance" {
availability_domain = var.instance_availability_domain
compartment_id = var.compartment_id
shape = var.instance_shape
create_vnic_details {
private_ip = var.instance_create_vnic_details_private_ip
assign_public_ip = var.instance_create_vnic_details_assign_public_ip
#only used when assign_public_ip is true
#if not used, then random IP is assigned
choose_public_ip = var.existing_reserved_public_ip_address
}
}References
slodki, brokedba and RawthiL