-
Notifications
You must be signed in to change notification settings - Fork 677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabling later Reassignment of reserved Public IPs to Private IPs in Terraform (as in the console) #1802
Comments
Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you. |
3 similar comments
Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you. |
Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you. |
Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you. |
We have notified our service engineer. Our service engineers will get back to you. |
1 similar comment
We have notified our service engineer. Our service engineers will get back to you. |
Any update on this request ? |
Interested as well. |
You can reassign a reserved public IP (or set it "free") by changing the assignment. When I need to destroy the instance, I need to remove the assignment in the "oci_core_public_ip" resource or replace it with another assignment.
|
Any update on this request ? I'm interested too ! |
To destroy the instance without destroying the public ip, first I had to comment the line private_ip_id on the oci_core_public_ip that related to the instance and run apply so terraform will detach the ip from the instance, then I can destroy targeting the oci_core_instance |
Hello, i am very interested in that. Best Regards. |
Community Note
Description
We would like to reuse existing reserved public IPs created using resource "oci_core_public_ip". But assign it afterward to any compute resource (lb,instance).
But for now there is no way to do it in terraform.
However it is definitely possible to later assign an existing Public IP to a VNIC through rest API (UpdatePublicIp) or via the console as shown below

New or Affected Resource(s)
either of the 2
Potential Terraform Configuration
since REST API has it already it won't require reinventing the wheel.
Proposed Workaround that doesn't work
A workaround has already proposed couple of times here #1565 (comment) and here #1649 (comment)
But it doesn't work
example :
But your terraform destroy will fail miserably as shown below .
terraform is clean, don't make it dirty.
The text was updated successfully, but these errors were encountered: