Collecting GA4 Data with AWS Glue in a Financial Regulatory Environment: Configuring Direct API Calls via KMS Signing and Proxy
·2026.11.23 10:12
Key point
We resolved token attribution issues by calling the GA4 API using AWS KMS signing and a forward proxy.
Details
- The native AWS Glue connector failed in financial regulatory environments due to lack of proxy support and dependency on user accounts
- We stored Google Cloud service account keys in AWS KMS and used boto3 to sign JWTs for authentication
- We routed external API calls through a forward proxy by using the https_proxy environment variable in the requests library
- AWS KMS and S3 calls were excluded via no_proxy to be processed securely through VPC endpoints
- Collected GA4 reports are loaded into Amazon S3 in Parquet format, enabling integrated analysis with other AWS data
- This configuration is applicable not only to GA4 but also to other external APIs requiring service account authentication
Implementation Configuration and Constraints
- Only native features of the AWS Glue 5.0 runtime (boto3, requests) were used, eliminating the need to install additional libraries
- RS256 signatures were generated using the RSASSA_PKCS1_V1_5_SHA_256 algorithm of the KMS Sign API
- Proxy access logs retain a history of external calls, enabling audit tracking
- Since GA4 aggregates reports, reviewing BigQuery Export is necessary if raw event data is required
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.