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

fix: Error fix for v2 module due to missing tcp_socket attribute #239

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rara-tan
Copy link

What I did

I added the tcp_socket attribute to the variables.tf of the v2 modules.

Errors

When I use the v2 module, I encountered the following error.

╷
│ Error: Unsupported attribute
│
│   on main.tf line 149, in resource "google_cloud_run_v2_service" "main":
│  149:               for_each = liveness_probe.value.tcp_socket[*]
│     ├────────────────
│     │ liveness_probe.value is object with 6 attributes
│
│ This object does not have an attribute named "tcp_socket".

Why

There is a tcp_socket section on the main.tf ( https://github.com/GoogleCloudPlatform/terraform-google-cloud-run/blob/main/modules/v2/main.tf#L182-L187 ).
However, there is no tcp_socket section on the variables.tf ( https://github.com/GoogleCloudPlatform/terraform-google-cloud-run/blob/main/modules/v2/variables.tf#L283-L301 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant