Amazon Bedrock AgentCore is in preview release and is subject to change.
Prerequisites
Before you start, you need:
-
An AWS account with appropriate permissions (for example,
BedrockAgentCoreFullAccess
) -
Basic understanding of Python programming
Install the SDK
To get started, install the bedrock-agentcore
package:
pip install bedrock-agentcore
Obtain Google Client ID and Client Secret
To allow your agent to access Google Drive, you need to obtain a Google client ID and client secret for your agent.
Go to the Google Developer Console
-
Enable Google Drive API
-
Create OAuth consent screen
-
Create a new web application for the agent, for example, "My Agent 1"
-
Add the following OAuth 2.0 scope to your agent application:
https://www.googleapis.com/auth/drive.metadata.readonly
-
Create OAuth 2.0 Credentials for the new web application, and note the generated Google client ID and client secret
Note
You must add the following URI to your application's redirect URI list:
https://bedrock-agentcore.us-east-1.amazonaws.com/identities/oauth2/callback