Configuring Gusto connections
Gusto connections use OAuth 2.0. You register an OAuth application with Gusto, enter its client ID in AWS Glue Studio, store its client secret in Secrets Manager, and authorize the connection through the Gusto consent screen. AWS Glue obtains and refreshes the access token for you.
To configure a Gusto connection:
Register an OAuth application with Gusto to obtain a client ID and client secret, and add the AWS Glue Studio OAuth redirect URI as an authorized redirect URL (see the Gusto API documentation).
In Secrets Manager, create a secret with the key
USER_MANAGED_CLIENT_APPLICATION_CLIENT_SECRET, and set its value to your OAuth application's client secret. Enter the OAuth client ID in the Client ID field in AWS Glue Studio when you create the connection.In the AWS Glue Studio console, choose Connections under Data Catalog, then choose Create connection.
Search for and choose Gusto as the data source.
For credentials, choose the Secrets Manager secret you created, select the IAM role that AWS Glue can assume to read the secret, optionally set network options, and complete the connection creation.
Grant the IAM role associated with your AWS Glue job permission to read the secret.