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
fix(rds_iam_token.py): support common aws env var's - AWS_ROLE_ARN, AWS_WEB_IDENTITY_TOKEN_FILE
Krrish Dholakia0861180bfe86
diff --git a/litellm/proxy/auth/rds_iam_token.py b/litellm/proxy/auth/rds_iam_token.pyindex 19dd6f7a3f2..ec3a424b9ff 100644--- a/litellm/proxy/auth/rds_iam_token.py+++ b/litellm/proxy/auth/rds_iam_token.py@@ -168,8 +168,10 @@ def generate_iam_auth_token(db_host, db_port, db_user) -> str:aws_secret_access_key=os.getenv("AWS_SECRET_ACCESS_KEY"),aws_session_name=os.getenv("AWS_SESSION_NAME"),aws_profile_name=os.getenv("AWS_PROFILE_NAME"),- aws_role_name=os.getenv("AWS_ROLE_NAME"),- aws_web_identity_token=os.getenv("AWS_WEB_IDENTITY_TOKEN"),+ aws_role_name=os.getenv("AWS_ROLE_NAME", os.getenv("AWS_ROLE_ARN")),+ aws_web_identity_token=os.getenv(+ "AWS_WEB_IDENTITY_TOKEN", os.getenv("AWS_WEB_IDENTITY_TOKEN_FILE")+ ),)token = boto_client.generate_db_auth_token(