hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.36k stars 1.75k forks source link

`google_artifact_registry_repository` should allow setting vulnerability scanning #20441

Open Boeller666 opened 6 hours ago

Boeller666 commented 6 hours ago

Community Note

Description

Currently there is no option to disable vulnerability scanning on repositories like in the UI. As vulnerability scanning currently costs 0.26$ per image, this is a huge cost factor and the only way to disable it is to not enable the whole api service!

An option vulnerability_scanning in the docker_config block (defaults to true) would be nice.

New or Affected Resource(s)

Potential Terraform Configuration

resource "google_artifact_registry_repository" "docker_repo" {
  location      = var.region
  repository_id = "images"
  description   = "docker repository"
  format        = "DOCKER"
  docker_config {
    immutable_tags         = true
    vulnerability_scanning = false
  }
}

References

No response