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

Failing using default_url_disabled with cloud run #19788

Open
eitanova opened this issue Oct 9, 2024 · 1 comment
Open

Failing using default_url_disabled with cloud run #19788

eitanova opened this issue Oct 9, 2024 · 1 comment

Comments

@eitanova
Copy link

eitanova commented Oct 9, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Terraform Version & Provider Version(s)

Terraform v1.9.5
on windows_amd64

  • provider registry.terraform.io/hashicorp/google v6.6.0
  • provider registry.terraform.io/hashicorp/google-beta v6.6.0

Affected Resource(s)

google_cloud_run_v2_service

Terraform Configuration

provider "google-beta" {
  project = local.config.mtls_project_id
  region  = local.config.default_region
}
resource "google_cloud_run_v2_service" "default" {
  provider = google-beta
  name     = "cloudrun-service"
  location = "me-west1"
  deletion_protection = false
  ingress = "INGRESS_TRAFFIC_ALL"
  launch_stage = "BETA"

  template {
    containers {
      image = "us-docker.pkg.dev/cloudrun/container/hello"
      resources {
        limits = {
          "cpu" = "4"
          "memory" = "16Gi"
          "nvidia.com/gpu" = "1"
        }
        startup_cpu_boost = true
      }
    }
    node_selector {
      accelerator = "nvidia-l4"
      default_uri_disabled = true

    }
    scaling {
      max_instance_count = 1
    }
  }
}

Debug Output

https://gist.github.com/eitanova/9d603af68d4339e86ccfb5caf0283024

Expected Behavior

Create cloud run service without the default url

Actual Behavior

Error for unsupported argument (default_uri_disabled)

Steps to reproduce

  1. terraform apply

Important Factoids

No response

References

No response

b/372531707

@eitanova eitanova added the bug label Oct 9, 2024
@github-actions github-actions bot added forward/review In review; remove label to forward service/run labels Oct 9, 2024
@ggtisc ggtisc self-assigned this Oct 9, 2024
@ggtisc
Copy link
Collaborator

ggtisc commented Oct 9, 2024

Confirmed issue!

It is not possible to use the default_uri_disabled argument because it is returning the following message:

Unexpected attribute: An attribute named "default_uri_disabled" is not expected here

@ggtisc ggtisc removed their assignment Oct 9, 2024
@ggtisc ggtisc removed the forward/review In review; remove label to forward label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants