Skip to content
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

sql_database_instance doesn't have implicit dependency with private vpc connection when using private service access #3245

Closed
kenzht opened this issue Mar 15, 2019 · 2 comments

Comments

@kenzht
Copy link

kenzht commented Mar 15, 2019

when using private service access, resource google_sql_database_instance doesn't implicitly depend on private_vpc_connection and hence, requires explicitly defining depends on relationship with private_vpc_connection.

resource "google_sql_database_instance" "foobar" {
  depends_on = ["google_service_networking_connection.private_vpc_connection"]
@emilymye
Copy link
Contributor

Unfortunately, this is true and pretty much unavoidable since we can't actually reference the networking connection in the SQL instance. As you can see in our example for private ip instances we use a depends_on block.

We certainly can improve the documentation around it but as of now we aren't able to do much else.

@ghost
Copy link

ghost commented Apr 18, 2019

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!

@ghost ghost locked and limited conversation to collaborators Apr 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants