The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Iam roles anywhere docs (#18559)
Krish Dholakia969790c4631f
diff --git a/docs/my-website/docs/providers/bedrock.md b/docs/my-website/docs/providers/bedrock.mdindex 122554fe8a4..f1eed4b4d52 100644--- a/docs/my-website/docs/providers/bedrock.md+++ b/docs/my-website/docs/providers/bedrock.md@@ -2208,6 +2208,53 @@ response = completion(| `aws_role_name` | `RoleArn` | The Amazon Resource Name (ARN) of the role to assume | [AssumeRole API](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sts.html#STS.Client.assume_role) || `aws_session_name` | `RoleSessionName` | An identifier for the assumed role session | [AssumeRole API](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sts.html#STS.Client.assume_role) |+### IAM Roles Anywhere (On-Premise / External Workloads)++[IAM Roles Anywhere](https://docs.aws.amazon.com/rolesanywhere/latest/userguide/introduction.html) extends IAM roles to workloads **outside of AWS** (on-premise servers, edge devices, other clouds). It uses the same STS mechanism as regular IAM roles but authenticates via X.509 certificates instead of AWS credentials.++**Setup**: Configure the [AWS Signing Helper](https://docs.aws.amazon.com/rolesanywhere/latest/userguide/credential-helper.html) as a credential process in `~/.aws/config`:++```ini+[profile litellm-roles-anywhere]+credential_process = aws_signing_helper credential-process \+ --certificate /path/to/certificate.pem \+ --private-key /path/to/private-key.pem \+ --trust-anchor-arn arn:aws:rolesanywhere:us-east-1:123456789012:trust-anchor/abc123 \+ --profile-arn arn:aws:rolesanywhere:us-east-1:123456789012:profile/def456 \+ --role-arn arn:aws:iam::123456789012:role/MyBedrockRole+```++**Usage**: Reference the profile in LiteLLM:++<Tabs>+<TabItem value="sdk" label="SDK">++```python+from litellm import completion++response = completion(+ model="bedrock/anthropic.claude-3-sonnet-20240229-v1:0",+ messages=[{"role": "user", "content": "Hello!"}],+ aws_profile_name="litellm-roles-anywhere",+)+```++</TabItem>+<TabItem value="proxy" label="PROXY">++```yaml+model_list:+ - model_name: bedrock-claude+ litellm_params:+ model: bedrock/anthropic.claude-3-sonnet-20240229-v1:0+ aws_profile_name: "litellm-roles-anywhere"+```++</TabItem>+</Tabs>++See the [IAM Roles Anywhere Getting Started Guide](https://docs.aws.amazon.com/rolesanywhere/latest/userguide/getting-started.html) for trust anchor and profile setup.+Make the bedrock completion call