Configuring Bitbucket connections
Bitbucket connections support two authentication types: an Atlassian API token sent with HTTP Basic authentication, and OAuth 2.0 with the authorization code grant. For either type, you store the credential in an Secrets Manager secret and reference that secret when you create the connection.
To configure a Bitbucket connection:
For API token authentication, create an Atlassian API token for Bitbucket with read scopes for the data you want to read. For instructions on using API tokens, see Using API tokens
on the Atlassian Support website. For API token authentication, create a secret in Secrets Manager with the key
api_key. Set its value to the Base64 encoding of, whereemail:apiTokenemailis your Atlassian account email address. Don't include theBasicprefix. For OAuth 2.0, see Setting up the authorization code flow for Bitbucket.In the AWS Glue Studio console, choose Connections under Data Catalog, then choose Create connection.
Search for and choose Bitbucket 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.