Google Cloud Storage Staging Bucket
Some sources or destinations without built-in staging resources require a staging bucket to efficiently transfer or ingest data.
Create a service account
- In the GCP console, navigate to the IAM & Admin menu.
- Click into the Service Accounts tab.
- Click Create service account at the top of the menu.
- In the first step, name the service account that will be used to transfer data into Cloud Storage and click Create and Continue. You may continue through the following steps without assigning any roles, and in the final step, click Done.
Create staging bucket
- Navigate to the Cloud Storage page.
- Click Create.
- Enter a bucket name, choose a region.
- After choosing your preferences for the remaining steps, click Create. (If presented with a warning, you may enforce public access prevention)
- On the Bucket details page for the bucket you created, select the Permissions tab, and click Grant access.
- Grant access to the principal (Service Account) you created in Step 1, and assign the Roles: Storage Object Creator and Storage Object Viewer. Click Save.
Generate HMAC key
An HMAC key is a type of credential and can be associated with a service account or a user account to access Google Cloud Storage.
- Navigate to the Cloud Storage page.
- Click into the Settings tab on the left side menu.
- In the Interoperability tab, click the Create a key for a Service Account button.
- Select the Service Account created in Step 1, and click Create key.
- Make a note of the Access key and Secret.
You're done!
Use this configured GCS staging bucket during the connection of your preferred data source or destination.
Note: depending on the connection method, you may need to refer to the following field name mappings:
- Bucket Access ID: your HMAC Access Key.
- Bucket Secret Key: your HMAC Secret.
Updated about 1 year ago