AI AWS Guardrails Policy

Use IAM role assumption

Configure the AI AWS Guardrails policy to use IAM role assumption instead of static credentials.

Note: The IAM role fields can be used with or without static AWS credentials (config.aws_access_key_id and config.aws_secret_access_key).

Prerequisites

  • You have an AWS Bedrock Guardrails policy and access to AWS Bedrock Guardrails service.

  • An existing AI Model.

Environment variables

  • AWS_GUARDRAILS_ID: The ID of the AWS Guardrails configuration.

  • AWS_GUARDRAILS_VERSION: The version of the AWS Guardrails configuration (e.g. DRAFT or 1).

  • AWS_REGION: The AWS region to use.

  • AWS_ASSUME_ROLE_ARN: The ARN of the IAM role to assume.

  • AWS_ROLE_SESSION_NAME: A unique identifier for the AWS role session.

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!