AI AWS Guardrails Policy

Detect guardrail violations without blocking

Configure the AI AWS Guardrails policy to detect violations without blocking requests or responses. The policy still evaluates every request and response against your guardrail, and records what it would have blocked in the logs. Use this to test a guardrail against real traffic before you enforce it.

Prerequisites

  • An AWS Bedrock Guardrails policy and access to the AWS Bedrock Guardrails service.

  • An existing AI Model.

  • An existing logging policy such as HTTP Log or File Log.

Environment variables

  • GUARDRAILS_ID: The guardrail identifier to apply.

  • GUARDRAILS_VERSION: The guardrail version to apply.

  • AWS_REGION: The AWS region where the guardrail is deployed.

  • AWS_ACCESS_KEY_ID: The AWS access key ID used to authenticate the request.

  • AWS_SECRET_ACCESS_KEY: The AWS secret access key used to authenticate the request.

Set up the policy

Attach the policy

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!