Google Search API Secret Configuration
Google Search API Secret Configuration
Section titled “Google Search API Secret Configuration”AWS Secrets Manager Secret Format
Section titled “AWS Secrets Manager Secret Format”For non-local environments (dev, stage, prod), the Google Search API credentials should be stored in AWS Secrets Manager with the following format:
Secret Name
Section titled “Secret Name”{environment}-rover-mcp/google-api
Examples:
dev-rover-mcp/google-apistage-rover-mcp/google-apiprod-rover-mcp/google-api
Secret Value Format (JSON)
Section titled “Secret Value Format (JSON)”{ "api_key": "YOUR_GOOGLE_SEARCH_API_KEY", "search_engine_id": "YOUR_GOOGLE_SEARCH_ENGINE_ID"}Creating the Secret
Section titled “Creating the Secret”Using AWS CLI
Section titled “Using AWS CLI”# Example for dev environmentaws secretsmanager create-secret \ --name dev-rover-mcp/google-api \ --secret-string '{"api_key":"YOUR_API_KEY","search_engine_id":"YOUR_ENGINE_ID"}' \ --region us-east-1
# Example for stage environmentaws secretsmanager create-secret \ --name stage-rover-mcp/google-api \ --secret-string '{"api_key":"YOUR_API_KEY","search_engine_id":"YOUR_ENGINE_ID"}' \ --region us-east-1
# Example for prod environment (in production account)aws secretsmanager create-secret \ --name prod-rover-mcp/google-api \ --secret-string '{"api_key":"YOUR_API_KEY","search_engine_id":"YOUR_ENGINE_ID"}' \ --region us-east-1Using AWS Console
Section titled “Using AWS Console”- Navigate to AWS Secrets Manager
- Click “Store a new secret”
- Select “Other type of secret”
- Enter the JSON value as shown above
- Name the secret according to the pattern:
{environment}-rover-mcp/google-api
Local Development
Section titled “Local Development”For local development, continue using the .env file with:
GOOGLE_SEARCH_API_KEY=your_api_keyGOOGLE_SEARCH_ENGINE_ID=your_engine_idThe service automatically detects local development (when FSD_DEPLOY is not set) and uses environment variables instead of AWS Secrets Manager.