Amazon Bedrock AgentCore is in preview release and is subject to change.
Step 2: Set up an OAuth 2.0 Credential Provider
Create a new OAuth 2.0 Credential Provider with the Google client ID and client secret obtained earlier using the following AWS CLI command:
aws bedrock-agentcore-control create-oauth2-credential-provider \ --region us-east-1 \ --name "google-provider" \ --credential-provider-vendor "GoogleOauth2" \ --oauth2-provider-config-input '{ "googleOauth2ProviderConfig": { "clientId": "<your-google-client-id>", "clientSecret": "<your-google-client-secret>" } }'
Behind the scenes, the SDK makes a call to the CreateOauth2CredentialProvider
API.