1. Download the Service Account Credentials JSON File from Google Cloud
1.1. Go to IAM & Admin → Service Accounts
1.2. Select the account and open Key Management
1.3. Create a new key, select JSON type — the file will be downloaded automatically
1.4. Base64-encode the key file
On Windows, use an online base64 encoding tool.
On Linux/Mac, run base64 service_account_json_file.json and copy the output, removing any line breaks.
2. Get the Google Cloud Project ID
Click the project name to find the project ID and save it for later use.
3. Store the Credentials in AWS Secrets Manager
In the Secrets Manager console, create a new secret. Choose "Other type of secret", set the key to credentials and the value to the base64-encoded string.
Name the secret bigquery_credentials_poc and click Store. Then copy the secret ARN for later: arn:aws:secretsmanager:us-west-2:260527533511:secret:bigquery_credentials_poc-wCHyT3
4. Create S3 Bucket s3-redshift-glue
4.1. Create the bucket in the Tokyo region with public access blocked
Copy the bucket ARN: arn:aws:s3:::s3-redshift-glue
4.2. Create a folder inside the bucket for the data
Name the folder after the table to be exported, e.g. 311_service_requests.
5. Create IAM Policy policy_secrets_s3
Create a policy using the following JSON to allow access to the secret and the S3 bucket:
9.1. Click Run in the top-right of the job details page
9.2. Click Runs to monitor execution status
9.3. After successful completion, verify the files in the S3 bucket
9.4. Download and inspect the output file format
10. Summary
The migration of data from BigQuery to S3 using the AWS Glue custom connector is now complete. To load the data into Redshift, create the corresponding table in Redshift and use the COPY command to import the S3 data.