GitHub - Amazon Bedrock AgentCore

Amazon Bedrock AgentCore is in preview release and is subject to change.

GitHub

You can set up GitHub as an outbound provider using GitHub OAuth 2.0.

Configuring a OAuth2 application for Github

To configure a GitHub OAuth2 application
  1. Choose the profile picture of your github account and choose Settings.

  2. Choose Developer settings.

  3. Choose OAuth Apps.

  4. On the OAuth2 apps page choose New OAuth App.

  5. Enter the necessary details specific to your application. For authorization callback URL provide the following:

    • https://bedrock-agentcore.{region}.amazonaws.com/identities/oauth2/callback

  6. Choose Register application to create your Github OAuth app.

  7. On Github's OAuth Apps page, go to your newly created provider.

  8. Under the client secrets section, choose Generate a new client secret.

  9. Make a note of the newly created client secret. You'll need this to configure your Github application with AgentCore Identity.

    Note

    Github only returns the full secret when it is created. If you lose track of it you'll need to recreate the client secret to configure the provider in AgentCore Identity.

For more details, refer to Github's documentation Creating an OAuth app.

Outbound

To configure the outbound GitHub resource provider, use the following:

{ "name": "NAME", "credentialProviderVendor": "GithubOauth2", "oauth2ProviderConfigInput": { "GithubOauth2ProviderConfigInput": { "clientId": "your-client-id", "clientSecret": "your-client-secret", } }, }