Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Prerequisites for using guardrails with your AWS account

Focus mode
Prerequisites for using guardrails with your AWS account - Amazon Bedrock

Before you can use Amazon Bedrock Guardrails, you must fulfill the following prerequisites:

  1. Request access to the model or models with which you want to use guardrails.

  2. Ensure that your IAM role has the necessary permissions to perform actions related to Amazon Bedrock Guardrails.

To prepare for the creation of your guardrail, consider preparing the following components of the guardrail in advance:

  • Look at the available content filters and determine the strength that you want to apply to each filter for prompts and model responses.

  • Determine the topics to block, consider how to define them, and decide which sample phrases to include. Describe and define the topic in a precise and concise manner. When you define denied topics, avoid using instructions or negative definitions.

  • Prepare a list of words and phrases (each up to three words) to block with word filters. Your list can contain up to 10,000 items and be up to 50 KB. Save the list in a .txt or .csv file. If you prefer, you can import it from an Amazon S3 bucket using the Amazon Bedrock console.

  • Look at the list of personally identifiable information in Remove PII from conversations by using sensitive information filters and consider which ones your guardrail should block or mask.

  • Consider regex expressions that might match sensitive information and consider which ones your guardrail should block or mask with the use of Sensitive information filters.

  • Develop the messages to send to users when the guardrail blocks a prompt or model response.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.