Skip to content

artifactregistry: add google_artifact_registry_project_config for platform logs#18020

Open
KyriosGN0 wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
KyriosGN0:platform-logs
Open

artifactregistry: add google_artifact_registry_project_config for platform logs#18020
KyriosGN0 wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
KyriosGN0:platform-logs

Conversation

@KyriosGN0

Copy link
Copy Markdown
Contributor

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`

…tform logs

Adds a new resource mapping the Artifact Registry projectConfig
project+location singleton, exposing the nested platformLogsConfig
(logging_state, severity_level) so platform logs can be configured via
Terraform.

Fixes hashicorp/terraform-provider-google#27747

Signed-off-by: AvivGuiser <avivguiser@gmail.com>
@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jun 19, 2026
@github-actions github-actions Bot requested a review from hao-nan-li June 19, 2026 20:36
@github-actions

Copy link
Copy Markdown

Googlers: For automatic test runs see go/terraform-auto-test-runs.

@hao-nan-li, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-approval Pull requests that need reviewer's approval to run presubmit tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Support for Artifact Registry Platform logs

2 participants