GCS Account Authorization¶
This article describes how to authorize GCS using a service account key (JSON).
Step 1: Create a Service Account¶
- Log in to Google Cloud Console;
- Go to IAM & Admin > Service Accounts;
- Click Create Service Account;
- Fill in the name (e.g.,
guance-forward), click Create and Continue; - The role step can be skipped (no authorization at the project level), click Done directly.
Step 2: Authorize the Bucket¶
- Go to Cloud Storage > Buckets > Select the target Bucket;
- Switch to the Permissions tab;
- Click Grant Access;
- Enter the email of the service account you just created;
- Select the role Storage Object Admin (or a custom role, including
storage.objects.create/get/listandstorage.buckets.get); - Save.
Step 3: Create a JSON Key¶
- Go to IAM & Admin > Service Accounts;
- Click on the target service account;
- Select the Keys tab > Add Key > Create New Key;
- Select JSON format, click Create;
- The key file will be downloaded automatically, please save it securely (it cannot be downloaded again).
Step 4: Configure in Guance¶
- Select Google Cloud GCS > Account Authorization;
- Open the downloaded JSON file, copy the entire content and paste it into the text field;
- Fill in the region, bucket, and storage path;
- Test the connection.