'Terraform maven preview feature unrecognised

artifact registry has a MAVEN format in preview. But when I do terraform apply in order to create a resource that has a preview feature, I have an error.

The resource:

resource "google_artifact_registry_repository" "my-maven-repo" {
  provider = google-beta
  project = "my-project"
  location = "europe-west4"
  repository_id = "my-maven-repo"
  description = "My maven repository"
  format = "MAVEN"
}

Error:

expected format to be one of [DOCKER], got MAVEN

In this doc, it states that MAVEN format is in preview.

My terraform version:

Terraform v1.1.4
on darwin_amd64
+ provider registry.terraform.io/hashicorp/google v3.38.0
+ provider registry.terraform.io/hashicorp/google-beta v3.51.1


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source