96232/argument-named-versioning-expected-define-block-versioning
Hi Guys,
I am trying to create a GCS bucket using Terraform. But it is showing me the below error.
An argument named "versioning" is not expected here. Did you mean to define a block of type "versioning"?
Hi@akhtar,
The error is telling that you need to enable versioning in the bucket. You can see the below example.
resource "google_storage_bucket" "foo" { ... versioning { enabled = true } }
Hi@akhtar, If you want to use the default ...READ MORE
Hi@sonali, There may be syntax errors in your ...READ MORE
Hi@akhtar, You have to set an environment variable ...READ MORE
Hi, I think there is a problem with ...READ MORE
Hi@akhtar, It seems you didn't enable a billing ...READ MORE
Hi@akhtar, You are trying to connect the GCP ...READ MORE
Hi@akhtar, Terraform supports many providers to deploy the ...READ MORE
Hi@akhtar, You can use the google_compute_instance resource in ...READ MORE
Hi@akhtar, Your bucket is mounted to a folder. ...READ MORE
Hi@mgb, I have checked the document. You are ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.