Permissions Setup
Use EinarCLI to generate Google Cloud components. You must first provide the necessary permissions for your application to access Google Cloud resources. Below, we outline the available options to facilitate this.
Option 1: Application Default Credentials
Learn how to set up Application Default Credentials here.
After configuring your Application Default Credentials (ADC), verify that the .env file in the root of your project contains the GOOGLE_PROJECT_ID environment. Update or confirm its value as follows:
GOOGLE_PROJECT_ID="replace-by-your-gcp-project-id"Option 2: Creating a Service Account Key
Create a service account with the roles your application needs, and a key for that service account, by following the instructions in Creating a service account key.
After creating a service account key, ensure the .env file in the root of your project includes the GOOGLE_PROJECT_ID and GOOGLE_APPLICATION_CREDENTIALS environment. Update or confirm their values as follows:
GOOGLE_APPLICATION_CREDENTIALS= "path/of/your/createdServiceAccount.json"GOOGLE_PROJECT_ID= "replace-by-your-gcp-project-id"