-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Public ephemeral IP no longer obtainable from compute instance's access_config #545
Comments
Confirm, reproduced the issue after upgrading terraform-provider-google from v0.1.3 to 1.0.1. |
@zbikmarc OK, closing this then. |
<!-- This change is generated by MagicModules. --> /cc @chrisst
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Terraform Version
v0.10.6
Affected Resource(s)
google_compute_instance
Terraform Configuration Files
Will abbreviate a bit to leave only the important parts, but the script should be runnable:
Debug Output
I would have to revert too much stuff to run the old version of the code again. I'm saying "old version", because this bug broke our code and we've had to fix it.
Expected Behavior
"${google_compute_instance.intervention.network_interface.0.access_config.0.assigned_nat_ip}" has have the ephemeral public IP of the instance
Actual Behavior
"${google_compute_instance.intervention.network_interface.0.access_config.0.assigned_nat_ip}" is empty.
Steps to Reproduce
terraform apply
Important Factoids
We didn't had the provider's version pinned. We also keep updating Terraform from time to time. We don't run this deployment very often.
At one point the script started failing with 400 error when setting the authorized networks for PSQL. That was because it was trying to add an empty IP to the whitelist. It was trying to set an empty IP, because the value that always had the IP was now empty.
When this error occurred I've pinned the provider version to 1.0.1 and fixed that by using a reserved public IP.
I also checked the whole access_config with terraform console - there's nothing useful in there, no address.
The text was updated successfully, but these errors were encountered: