Configuring Anthropic connections
Anthropic 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 an Anthropic connection:
Two credential classes are used, in the
x-api-keyheader. (1) An Admin API key (sk-ant-admin01-…), created in the Console by an organization admin (Settings → API keys), reaches the organization/admin and usage/cost entities. (2) A workspace-scoped API key (sk-ant-…), created inside a workspace, reaches the model, message-batch, and file entities. See "Known limitations" below—a single key cannot read both groups.In Secrets Manager, create a secret containing the key
apiKeyset to your Anthropic credential. The connector sets theanthropic-versionheader automatically, so don't include it in the secret.In the AWS Glue Studio console, choose Connections under Data Catalog, then choose Create connection.
Search for and choose Anthropic 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.