Is it possible to create a cloud run service without specifying the container? The container will be deployed later through cloud build. But now when I create the cloud run initially, it asks for container image, and I don't have it. Without the container it doesn't work on both the gcp UI and terraform. How to do this? What is the approach for such cases?
resource "google_cloud_run_service" "default" {
provider = google-beta
name = var.service_name
location = var.region
template {
spec {
containers {
image = "us-central1-docker.pkg.dev/holabola-dev/holabolaartifacts/holabola:latest"
}
}
}
metadata {
annotations = {
"autoscaling.knative.dev/minScale" = "1"
"autoscaling.knative.dev/maxScale" = "1000"
"run.googleapis.com/launch-stage" : "BETA"
"run.googleapis.com/vpc-access-connector" = "vpc-connector"
}
}
}