From 8bcf163b832b8f989a6fde7c76026094d01d2d3e Mon Sep 17 00:00:00 2001 From: Nicholas Couture <52148348+orolega@users.noreply.github.com> Date: Wed, 18 Jun 2025 10:41:41 +1000 Subject: [PATCH] Update bedrock guardrail docs (#11826) Added the `aws_region_name` and `aws_role_name` keys to the definition of a guardrail config. Without these you will get the error `{\"message\":\"The guardrail identifier or version provided in the request does not exist.\"}` --- docs/my-website/docs/proxy/guardrails/bedrock.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/my-website/docs/proxy/guardrails/bedrock.md b/docs/my-website/docs/proxy/guardrails/bedrock.md index a0c43d47dec..4747bb88889 100644 --- a/docs/my-website/docs/proxy/guardrails/bedrock.md +++ b/docs/my-website/docs/proxy/guardrails/bedrock.md @@ -22,8 +22,10 @@ guardrails: litellm_params: guardrail: bedrock # supported values: "aporia", "bedrock", "lakera" mode: "during_call" - guardrailIdentifier: ff6ujrregl1q # your guardrail ID on bedrock - guardrailVersion: "DRAFT" # your guardrail version on bedrock + guardrailIdentifier: ff6ujrregl1q # your guardrail ID on bedrock + guardrailVersion: "DRAFT" # your guardrail version on bedrock + aws_region_name: os.environ/AWS_REGION # region guardrail is defined + aws_role_name: os.environ/AWS_ROLE_ARN # your role with permissions to use the guardrail ``` @@ -158,6 +160,8 @@ guardrails: mode: "pre_call" # Important: must use pre_call mode for masking guardrailIdentifier: wf0hkdb5x07f guardrailVersion: "DRAFT" + aws_region_name: os.environ/AWS_REGION + aws_role_name: os.environ/AWS_ROLE_ARN mask_request_content: true # Enable masking in user requests mask_response_content: true # Enable masking in model responses ```