You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terraform script
provider "google" {
credentials = file("new-project-396209-b4e084f178ff.json")
project = "new-project-396209"
region = "us-central1" # Set to your desired region
}
resource "google_firestore_database" "example" {
project = "new-project-396209"
location = "us-central1" # Set to your desired location
depends_on = [google_project_service.firestore]
}
Error: Missing required argument
│
│ on main.tf line 12, in resource "google_firestore_database" "example":
│ 12: resource "google_firestore_database" "example" {
│
│ The argument "type" is required, but no definition was found.
╵
╷
│ Error: Missing required argument
│
│ on main.tf line 12, in resource "google_firestore_database" "example":
│ 12: resource "google_firestore_database" "example" {
│
│ The argument "name" is required, but no definition was found.
╵
╷
│ Error: Missing required argument
│
│ on main.tf line 12, in resource "google_firestore_database" "example":
│ 12: resource "google_firestore_database" "example" {
│
│ The argument "location_id" is required, but no definition was found.
╵
╷
│ Error: Unsupported argument
│
│ on main.tf line 14, in resource "google_firestore_database" "example":
│ 14: location = "us-central1" # Set to your desired location
│
│ An argument named "location" is not expected here.
╵
The text was updated successfully, but these errors were encountered:
shekhar250723
changed the title
Getting error to create gcp filestore through terraform script
Getting error to create gcp firestore through terraform script
Aug 21, 2023
Terraform script
provider "google" {
credentials = file("new-project-396209-b4e084f178ff.json")
project = "new-project-396209"
region = "us-central1" # Set to your desired region
}
resource "google_project_service" "firestore" {
project = "new-project-396209"
service = "firestore.googleapis.com"
}
resource "google_firestore_database" "example" {
project = "new-project-396209"
location = "us-central1" # Set to your desired location
depends_on = [google_project_service.firestore]
}
Error: Missing required argument
│
│ on main.tf line 12, in resource "google_firestore_database" "example":
│ 12: resource "google_firestore_database" "example" {
│
│ The argument "type" is required, but no definition was found.
╵
╷
│ Error: Missing required argument
│
│ on main.tf line 12, in resource "google_firestore_database" "example":
│ 12: resource "google_firestore_database" "example" {
│
│ The argument "name" is required, but no definition was found.
╵
╷
│ Error: Missing required argument
│
│ on main.tf line 12, in resource "google_firestore_database" "example":
│ 12: resource "google_firestore_database" "example" {
│
│ The argument "location_id" is required, but no definition was found.
╵
╷
│ Error: Unsupported argument
│
│ on main.tf line 14, in resource "google_firestore_database" "example":
│ 14: location = "us-central1" # Set to your desired location
│
│ An argument named "location" is not expected here.
╵
The text was updated successfully, but these errors were encountered: