Bigquery
Create a Secret for securing BigQuery credentials.
Prerequisites
To create a Secret for securing BigQuery credentials, you must have the following information:
See Secret: Access control for who can create a Secret and how access to it is managed.
Source system requirements
Project ID: The BigQuery project ID used to identify your Google Cloud project. You can retrieve this from the Google Cloud Console by navigating to the project dashboard and locating the Project ID under project information.
Email ID: The email address associated with the service account used to access BigQuery. This can be found in the IAM & Admin > Service Accounts section of the Google Cloud Console by selecting the relevant service account and viewing its details.
JSON Key File: The path to the JSON key file for the service account, used for authentication. To obtain this, go to *IAM & Admin > Service Accounts- in the Google Cloud Console, select the service account, click Keys, and download the JSON key file by selecting Add Key > JSON. Ensure the file is securely stored and note its path.
Ensure you have these credentials ready before proceeding with the Secret creation process.
Create a Secret for securing BigQuery credentials
BigQuery is a data warehouse that serves as a centralized repository for structured data, supporting efficient query and analysis.
To create a BigQuery Secret in DataOS, ensure you have access to the DataOS Command Line Interface (CLI) and the required permissions. Follow the steps below to complete the creation process efficiently and securely.
Step 1: Create a manifest file
Begin by creating a manifest file to hold the configuration details for your BigQuery Secret.
name: ${{bigquery-secret-name}}
version: v2alpha
type: secret
tags:
- ${{tag-1}}
- ${{tag-2}}
description: "Credentials for bigquery depot"
layer: user
secret:
type: key-value
files:
gcp_json_key: ${{bigquery-gcs-key-json}}For more information about each attribute, refer to the configurations section.
Step 2: Apply the manifest
To create the BigQuery Secret within DataOS, use the apply command.
Example Usage:
Step 3: Validate the Secret
To validate the proper creation of the BigQuery Secret in DataOS, use the get command.
Expected Output:
To get the list of all the Secrets within the Dataos environment, execute the following command.
Expected Output:
Delete the Secret
To delete the BigQuery Secret, use one of the following commands:
Specify the Resource type and Secret name in the delete command.
Example Usage:
Last updated
Was this helpful?