Configuring Square connections
Square connections authenticate with an API key (or token). You store the key in Secrets Manager and reference that secret when you create the connection in AWS Glue Studio.
To configure a Square connection:
Copy the personal access token for your application from the Credentials page of the Square Developer Console. Use the production token for live data or the Sandbox token for test data. For more information, see Access Tokens and Other Credentials
on the Square Developer website. In Secrets Manager, create a secret containing the key
access_tokenset to your Square access token. Store only the token value. The connector adds theBearerprefix.In the AWS Glue Studio console, choose Connections under Data Catalog, then choose Create connection.
Search for and choose Square as the data source.
For the URL, choose
https://connect.squareup.comfor a production access token orhttps://connect.squareupsandbox.comfor a Sandbox access token.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.