Skip to content

artifactregistry: add google_artifact_registry_project_config for platform logs#1353

Merged
modular-magician merged 1 commit into
terraform-google-modules:masterfrom
modular-magician:downstream-pr-11df7d91cb9bec9354b0c0568d6704bce8a469c4
Jun 24, 2026
Merged

artifactregistry: add google_artifact_registry_project_config for platform logs#1353
modular-magician merged 1 commit into
terraform-google-modules:masterfrom
modular-magician:downstream-pr-11df7d91cb9bec9354b0c0568d6704bce8a469c4

Conversation

@modular-magician

Copy link
Copy Markdown
Collaborator

Adds a new resource google_artifact_registry_project_config that manages the Artifact Registry project config — a project+location singleton — exposing its nested platformLogsConfig so platform logs can be enabled/disabled and given a severity threshold via Terraform.

Modeled on the sibling google_artifact_registry_vpcsc_config: the config always exists per location, so create/update are PATCH (with a hardcoded updateMask=platformLogsConfig), and the resource is acquire-and-update with a state-only delete (exclude_delete).

Resolves hashicorp/terraform-provider-google#27747

Example:

resource "google_artifact_registry_project_config" "config" {
  location = "us-central1"
  platform_logs_config {
    logging_state  = "ENABLED"
    severity_level = "INFO"
  }
}
`google_artifact_registry_project_config`

Derived from GoogleCloudPlatform/magic-modules#18020

…latform logs (#18020)

Signed-off-by: AvivGuiser <avivguiser@gmail.com>

[upstream:11df7d91cb9bec9354b0c0568d6704bce8a469c4]

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit 16d9e95 into terraform-google-modules:master Jun 24, 2026
3 checks passed
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.

Add Support for Artifact Registry Platform logs

1 participant