You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
google_sql_database_instance.operations: Error, failed to create instance operations: googleapi: Error 400: Invalid request: At least one of Public IP or Private IP connectivity must be enabled.., invalid
Expected Behavior
Based on the terraform documentation for the resource, we should not have to specify explicitly if the instance is using a public IP
Actual Behavior
Error applying Plan with an error:
* google_sql_database_instance.operations: Error, failed to create instance operations: googleapi: Error 400: Invalid request: At least one of Public IP or Private IP connectivity must be enabled.., invalid
Steps to Reproduce
terraform apply
Resolution
Can be resolved by explicitly defining the ipv4_address to true in the ip_configuration block within the settings block
One of ipv4_enabled = true or a private_network value must be set; you can omit ipv4_enabled provided a private_network is defined. This is confirmed with the error message At least one of Public IP or Private IP connectivity must be enabled., where we enabled Public IP with ipv4_enabled and Private IP with private_network.
I'll add a note to the docs that one of them must be specified.
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 👉 hashibot-feedback@hashicorp.com. Thanks!
ghost
locked and limited conversation to collaborators
Mar 23, 2019
Hi,
Terraform Version
0.11.11
Affected Resource(s)
google_sql_database_instance
Terraform Configuration Files
Output
Error: Error applying plan:
1 error(s) occurred:
google_sql_database_instance.operations: 1 error(s) occurred:
google_sql_database_instance.operations: Error, failed to create instance operations: googleapi: Error 400: Invalid request: At least one of Public IP or Private IP connectivity must be enabled.., invalid
Expected Behavior
Based on the terraform documentation for the resource, we should not have to specify explicitly if the instance is using a public IP
Actual Behavior
Error applying Plan with an error:
Steps to Reproduce
terraform apply
Resolution
Can be resolved by explicitly defining the ipv4_address to true in the ip_configuration block within the settings block
The text was updated successfully, but these errors were encountered: