Skip to content

google_artifact_registry_repository missing parameter cleanup_policy_dry_run #1966

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

Open
1 task
Davigugu55 opened this issue Mar 26, 2025 · 0 comments
Open
1 task
Labels
bug Something isn't working

Comments

@Davigugu55
Copy link

Language Server Version

v0.36.4 (?) (vscode-terraform budled version)

Terraform Version

v1.11.3

Client Version

VS Code v1.98.2

Terraform Configuration

terraform {

  required_providers {
    google = {
      source  = "hashicorp/google"
      version = "~> 6.20"
    }
  }

  backend "gcs" {
    bucket = "my_bucket_id"
    prefix = "my_subfolder"
  }

}

provider "google" {

  project = "my_project"
  region  = "my_region"
  zone    = "my_zone"

}

data "google_client_config" "providerConfig" {}
data "google_project" "providerConfig" {}

resource "google_artifact_registry_repository" "bulldesk_app" {
  repository_id = "bulldesk-app"
  format        = "DOCKER"
  cleanup_policy_dry_run = true
  location      = data.google_client_config.providerConfig.region

  docker_config {
    immutable_tags = false
  }
}

Steps to Reproduce

  1. Using vscode-terraform create a .tf file with the code above

It will show "Unexpected attribute: An attribute named "cleanup_policy_dry_run" is not expected here", while it is a valid attribute as documented on current Google provider version v6.27.0
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/artifact_registry_repository

Image

Expected Behavior

I shouldn't return an error in the IDE.

Actual Behavior

Returning "Unexpected attribute: An attribute named "cleanup_policy_dry_run" is not expected here" error in the IDE

Gist

No response

Workarounds

No response

References

No response

Help Wanted

  • I'm interested in contributing a fix myself

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 other comments that do not add relevant new information or questions, 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
@Davigugu55 Davigugu55 added the bug Something isn't working label Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant