Skip to content
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

Getting error to create gcp firestore through terraform script #2

Open
shekhar250723 opened this issue Aug 21, 2023 · 0 comments
Open

Comments

@shekhar250723
Copy link

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.

@shekhar250723 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant