Google Search Console (GSC) is a service provided by Google that helps you monitor, preserve, and troubleshoot your website’s presence in Google Search outcomes. It supplies you distinctive insights straight from Google about how the search engine sees your website, serving to you enhance your efficiency in Search Engine Outcomes Pages (SERPs).
When there’s a have to merge Google Search Console information with a number of information sources or conduct advanced efficiency evaluation, conventional strategies can grow to be time-consuming and error-prone. That is the place Amazon Redshift and AWS Glue supply a complete information integration resolution.
On this put up, we discover how AWS Glue extract, remodel, and cargo (ETL) capabilities join Google functions and Amazon Redshift, serving to you unlock deeper insights and drive data-informed choices by means of automated information pipeline administration. We stroll you thru the method of utilizing AWS Glue to combine information from Google Search Console and write it to Amazon Redshift.
Answer overview
AWS Glue is a serverless information integration service that helps uncover, put together, and mix information for analytics, machine studying (ML), and software growth. You should use AWS Glue to create, run, and monitor information integration and ETL pipelines and catalog your property throughout a number of information shops.
Amazon Redshift is a quick, scalable, and absolutely managed cloud information warehouse that permits you to to course of and run advanced SQL analytics workloads on structured and semi-structured information. It additionally helps you securely entry your information in operational databases, information lakes, or third-party datasets with minimal motion or copying of knowledge. Tens of hundreds of consumers use Amazon Redshift to course of giant quantities of knowledge, modernize their information analytics workloads, and supply insights for his or her enterprise customers.
The next diagram illustrates the structure that we implement on this put up.
The workflow consists of an AWS Glue job studying information from Google Search Console for the three entities that Google Search Console helps (Search Analytics, Websites, and Sitemaps), and writing the information in a Redshift provisioned cluster. AWS Glue helps Google Search Console API v3.
Within the following sections, we stroll by means of the next steps to configure AWS Glue to arrange a connection between Google Search Console and Amazon Redshift for information migration:
- Create an OAuth shopper.
- Create an IAM position for AWS Glue integration with Google Search Console, AWS Secrets and techniques Supervisor, and Amazon Redshift.
- Create a secret in Secrets and techniques Supervisor to retailer the shopper secret created within the earlier step.
- Create a connection to Google Search Console in AWS Glue.
- Create a connection to Amazon Redshift in AWS Glue.
- Arrange a desk and permissions in Amazon Redshift.
- Create an ETL job in AWS Glue.
Conditions
Earlier than beginning this walkthrough, it’s essential to have the next stipulations in place:
- An AWS account.
- A Google Cloud account and a Google Cloud venture.
- In your Google Cloud venture, it’s essential to allow the Google Search Console API.
For directions, see Allow and disable APIs on the API Console Assist for Google Cloud Platform. - A provisioned cluster or Amazon Redshift Serverless .
On this put up, we use a single-node ra3.giant Redshift provisioned cluster deployed in a single Availability Zone. This configuration is used for demonstration functions solely. For manufacturing environments, we suggest utilizing multi-node clusters with a minimal of two nodes deployed throughout a number of Availability Zones for top availability and higher efficiency. - An Amazon Easy Service Storage (Amazon S3) bucket.
- An AWS Id and Entry Administration (IAM) position that grants AWS Glue and Amazon Redshift read-only entry to Amazon S3. This position will probably be connected to the Redshift cluster or Redshift Serverless namespace throughout creation, and also will be used when working the AWS Glue job together with permissions to learn and write secrets and techniques to Secrets and techniques Supervisor. Discuss with the Amazon Redshift Database Developer Information for extra particulars.
Create OAuth shopper
To connect with Google Search Console, AWS Glue requires OAuth 2.0 for authentication. You need to create an OAuth 2.0 shopper ID, which AWS Glue makes use of when requesting an OAuth 2.0 entry token. To create an OAuth 2.0 shopper ID within the Google Cloud Platform console, comply with these steps:
- On the Google Cloud Platform console, from the initiatives checklist, select a venture or create a brand new one.
- If the APIs & Companies web page isn’t already open, select the menu icon on the higher left and select APIs & Companies.
- Within the navigation pane, select Credentials.
- Select Create Credentials, then select OAuth shopper ID.
- Choose Internet software as the applying sort, enter NewClient because the title, and supply https://console.aws.amazon.com for Licensed JavaScript origins.
- For Licensed redirect URIs, add https://us-east-1.console.aws.amazon.com/gluestudio/oauth. This instance makes use of us-east-1 for establishing AWS Glue jobs; change the redirect URIs in accordance with your AWS Area. A number of redirect URIs will also be specified.
- Select Create.
- Open the main points web page on your new shopper.
- Underneath Further info, be aware down the shopper ID and shopper secret. You have to these particulars when configuring the key in Secrets and techniques Supervisor.
Create IAM position for AWS Glue integration with Google Search Console, Secrets and techniques Supervisor, and Amazon Redshift
You should use AWS Glue to switch information from supported sources into your Redshift databases. You want an IAM position as a result of AWS Glue wants authorization to jot down into Redshift databases. To create a job, full the next steps:
- Check in to the IAM console with ample entry to create insurance policies.
- Select Insurance policies within the navigation pane.
- Select Create coverage.
- On the JSON tab, enter the next coverage. AWS Glue wants the next permissions to entry and run SQL statements within the Redshift database and create and retrieve secrets and techniques with Secrets and techniques Supervisor:
Modify the S3 bucket title that you’re utilizing because the staging bucket. Moreover, AWS Glue will need to have entry to particular AWS owned S3 buckets for internet hosting AWS Glue transforms. On this instance, the IAM coverage makes use of aws-glue-studio-transforms-510798373988-prod-us-east-1, which is the AWS owned bucket within the us-east-1 Area. Discuss with Evaluate IAM permissions wanted for ETL jobs for the suitable bucket title on your Area.
- Select Subsequent.
- For Coverage title, enter a reputation (for this put up, we use glue-redshift-gsc-policy).
- Enter an outline, then select Create coverage.
- Within the navigation pane, select Roles and Create position.
- Select Customized belief coverage and enter the next, then select Subsequent.
- Seek for and choose the coverage glue-redshift-gsc-policy, then select Subsequent.
- Present the position title GlueIAMRoleRedshiftNew or one other title and related Description, then select Create position.
- After the position is created, select Add permissions and Connect insurance policies.
- Seek for AWSGlueServiceRole and select Add Permissions. This coverage is usually connected to roles specified when defining crawlers, jobs, and growth endpoints.
Create secret in Secrets and techniques Supervisor
Full the next steps to create a Secrets and techniques Supervisor secret:
- On the Secrets and techniques Supervisor console, select Retailer a brand new secret.
- Choose Different sort of secret.
- For the customer-managed linked software, the key ought to comprise the linked software’s client secret with USER_MANAGED_CLIENT_APPLICATION_CLIENT_SECRET as the important thing and the shopper secret worth as created within the earlier step.

- Select Subsequent.
- Enter a secret title and select Subsequent.
- Select Retailer.
Create connection to Google Search Console in AWS Glue
To create a connection to Google Search Console in AWS Glue, comply with these steps:
- Check in to the AWS Glue console with a certified e mail ID with permissions already offered in Google Search Console.
- Within the navigation pane, select Knowledge connections.
- Underneath Connections, select Create connection.
- In Knowledge sources, seek for Google Search Console and select Subsequent.

- For IAM Position ARN, select the position created earlier.
- For Token URL, use https://oauth2.googleapis.com/token, which is the default worth.
- For Person Managed Consumer Software ClientId, enter the shopper ID created earlier whereas creating the OAuth shopper.
- For AWS Secret, select the key created earlier.
- In case your AWS Glue jobs must run in an Amazon digital personal cloud (VPC), present applicable particulars. For extra info, seek advice from Configure a VPC on your ETL job.

- Select Check connection, select your Google ID, and select Proceed.

- Select Proceed to belief the connection.
If the consumer has licensed entry, the connection take a look at will probably be profitable.
- Select Subsequent.
- Present a connection title and select Create connection.
Create connection to Amazon Redshift in AWS Glue
Full the next steps to arrange an AWS Glue connection for Amazon Redshift. Discuss with Redshift connections for extra info.
- On the AWS Glue console, within the navigation pane, select Knowledge connections.
- Underneath Connections, select Create connection.
- In Knowledge sources, seek for JDBC and select Subsequent. For Amazon Redshift, you too can use Redshift connections. On this put up, we use JDBC. On this instance, we’re utilizing a Redshift provisioned cluster.
- Present the Amazon Redshift JDBC URL and both use a Secrets and techniques Supervisor secret for storing credentials or present the consumer title and password straight. As a greatest apply, it is strongly recommended to make use of Secrets and techniques Supervisor.
- Configure community choices with Amazon VPC settings for working the AWS Glue job in a VPC. On this instance, we use the identical VPC, subnet, and safety group the place the Redshift cluster is provisioned. All JDBC information shops have to be accessible from the VPC subnet. A VPC endpoint is required to entry Amazon S3 from inside your VPC. In case your job must entry each VPC sources and the general public web, configure a NAT gateway within the VPC.

Arrange desk and permissions in Amazon Redshift
To arrange desk and permissions in Amazon Redshift, comply with these steps:
- On the Amazon Redshift console, select Question editor v2.
- Connect with your current Redshift cluster.
- Create a desk with the next DDL. For this put up, we create a brand new database named take a look at and create the next tables within the public schema of take a look at database:
Create ETL job in AWS Glue
To create an information move in AWS Glue, comply with these steps:
- On the AWS Glue console, select ETL jobs within the navigation pane.
- Select Visible ETL below Create job.
Every ETL job in AWS Glue is priced based mostly on its period. - For the supply, select Google Search Console, and for the goal, select Amazon Redshift.

- Select Supply (Google Search Console) to configure the properties, which opens in the suitable window pane.
- Select the Google Search Console connection created within the earlier sections, and supply the entity title. On the time of writing, there are three supported entities: Search Analytics, Websites, and Sitemaps, with a number of supported fields and operators for every entity. Select the entity title and the corresponding fields; by default, the connector selects all fields. The instance reveals choosing the entity Website and corresponding fields siteUrl and permissionLevel.

- Select Target (Amazon Redshift) to configure the properties, which opens in the suitable pane.
- Select the Amazon Redshift connection, schema, and desk title that had been created within the earlier steps. On this instance, we use Append to focus on desk as the tactic for dealing with the information. An S3 listing is offered for staging non permanent information.

- Navigate to Job particulars and supply a job title and IAM position (which the job will assume whereas working). This is similar position created earlier.
- Select Save and Run. For this instance, we use AWS Glue model 5.0, maintaining all different configuration values below Job particulars at their defaults. For this instance, now we have not applied any schema mapping, so the columns in Amazon Redshift had been created to match the output response for the Search entity.
- After the job has accomplished efficiently, navigate to Question Editor v2 in Amazon Redshift and question the Websites desk to preview the information.


- Within the case of job failures, validate the connections by doing an information preview, and seek advice from Troubleshooting AWS Glue.
- Much like the Website entity, you’ll be able to load Sitemap entity information by altering the supply properties and vacation spot desk within the goal Redshift cluster, then selecting Run.

- Navigate to Question Editor v2 in Amazon Redshift and question the sitemap desk to preview the information.

- Much like Sitemap, you’ll be able to load Search Analytics entity information by altering the supply properties and vacation spot desk within the goal Redshift cluster, then selecting Run.

- Navigate to Question Editor v2 in Amazon Redshift and question the search_analytics desk and preview the information.

Filter predicates with Search Analytics
The Search Analytics entity supplies help for a number of filters that can be utilized to view the visitors information for the websites. The next examples present use of some filter predicates you should use that Google Search Console connections help.
- start_end_date – The default worth for start_end_date is between AND
. To make use of a distinct date vary, use the between The next instance shows search information from January by means of September 2025: - machine – The machine filters outcome in opposition to specified machine sort like DESKOP, MOBILE, and TABLET:
- nation – You’ll be able to filter in opposition to the desired nation, as specified by three-letter nation code (ISO 3166-1 alpha-3):
- dimensions: Dimensions assist group zero or extra outcomes for filtering search information by nation or machine. The next instance shows search information grouped by nation, and likewise grouping by nation and filtering for cellular units:
Run analytical queries on Amazon Redshift
On this part, we run analytical queries utilizing aggregated information throughout totally different search entities.
Record all international locations the place website place is lower than 10 and machine sort is MOBILE:
Record all international locations the place impressions are larger than 1 and place is lower than 10:
Clear up
To keep away from incurring expenses, clear up the sources in your AWS account by finishing the next steps:
- On the AWS Glue console, within the navigation pane, select Job monitoring.
- Cease any working jobs created for Google Search Console connections.
- From the checklist of connections, choose the connection title created and delete it.
- Delete the Redshift provisioned cluster or the Redshift Serverless workspace and namespace. Amazon Redshift pricing is utilized through the cluster’s runtime based mostly on cluster configuration.
- Clear up sources in your Google account by deleting the venture that incorporates the Google Mission sources. For directions, seek advice from Delete your venture.
Conclusion
On this put up, we walked you thru the method of utilizing AWS Glue to combine information from Google Search Console and write it to Amazon Redshift, a petabyte-scale information warehouse. Whether or not you’re archiving historic information, performing advanced analytics, or getting ready information for machine studying, this connector streamlines the method and helps create an built-in information pipeline.
For extra info, seek advice from AWS Glue help for Google Search Console.
In regards to the authors












