I am running a pipeline that uses a powershell script and I need to bind a tag I created to my Firestore database in Google Cloud Platform
the gcloud command to do this is as follows:
gcloud resource-manager tags bindings create --tag-value=$value --parent=//firestore.googleapis.com/projects/$projectID/databases/\(default\) --location=$location
I have tested this in Google CLI and it works. However when running it in my powershell script I am encountering the error below
default\: /__w/1/build-bundle-00x-00x-general-extract/infra/00x-00x-general/.terraform/modules/gcp_firestore_enable_ttl/scripts/enable_ttl.ps1:60
Line |
60 | … store.googleapis.com/projects/$projectID/databases/\(default\) --loca …
| ~~~~~~~~
| The term 'default\' is not recognized as a name of a cmdlet,
| function, script file, or executable program. Check the
| spelling of the name, or if a path was included, verify that
| the path is correct and try again.
I have tried the command using bash script and Google Command Line Interface and works as intended with no errors. I am only experiencing this error when using powershell script.