Overview
Client-mode REST API connectors for Amazon Bedrock: triage alarms and summarize shift logs with the Converse API, create Titan embeddings with InvokeModel, count tokens, screen text with a guardrail, and list foundation models and inference profiles, all with a Bedrock API key. This is one of the templates in the Amazon Bedrock REST API app (amazon-bedrock). Deploy it alongside the other connectors of that app when they depend on each other (for example a token connector plus an API connector).
Not yet verified against the live vendor API: No Amazon Bedrock API key (or IAM credentials for SigV4) on the factory box. Needs an AWS account with Bedrock model access enabled in the chosen region (e.g. eu-west-1: Amazon Nova Lite via eu. inference profile + Titan Text Embeddings V2), a Bedrock API key (long-term ABSK… or short-term), and optionally a guardrail id for ApplyGuardrail. Then run BEDROCK_API_KEY=… python3 smoke_bedrock.py.
Auth
Amazon Bedrock API key as Authorization: Bearer {value.json.api_key} (long-term ABSK…, short-term bedrock-api-key-…). Hub secret suggested AWS_BEARER_TOKEN_BEDROCK + GET SECRET. Alternative: AWS SigV4 (service bedrock) computed outside the broker, documented in comments. Never commit keys. Auth headers used by the template:Authorization: Bearer {value.json.api_key}.
Template parameters
BASE_ADDRESS default: https://bedrock-runtime.eu-west-1.amazonaws.com.
Events
Deploy
Get the template card (JSON withtemplate and metadata) from the broker, then deploy the connector:
BASE_ADDRESS already filled in:
-addRoute (do not include ADD METADATA).
Usage example
CallConverse by publishing a JSON payload to its request topic, and read the reply on the response topic:

