Skip to content
Cloud Governance Tools

Deny Amazon Bedrock API keys

Deny Amazon Bedrock API keys is an AWS guardrail written in service control policies. Denies creating Bedrock service-specific credentials (long-term API keys) and denies bedrock:CallWithBearerToken and bedrock-mantle:CallWithBearerToken. What it breaks: existing Bedrock API keys and short-term bearer tokens stop working for every principal in the affected accounts, because the second statement has no exception condition.

More ai services guardrails ยท About Service control policies

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Deny",
      "Action": "iam:CreateServiceSpecificCredential",
      "Resource": "*",
      "Condition": {
        "StringEquals": {
          "iam:ServiceSpecificCredentialServiceName": "bedrock.amazonaws.com"
        }
      }
    },
    {
      "Effect": "Deny",
      "Action": [
        "bedrock:CallWithBearerToken",
        "bedrock-mantle:CallWithBearerToken"
      ],
      "Resource": "*"
    }
  ]
}
Blocks
Denies creating Bedrock service-specific credentials (long-term API keys) and denies bedrock:CallWithBearerToken and bedrock-mantle:CallWithBearerToken.
Breaks
Existing Bedrock API keys and short-term bearer tokens stop working for every principal in the affected accounts, because the second statement has no exception condition. (source)
Test before applying
As for every Service control policies guardrail: how to test before enforcing
Mechanism
Service control policies (SCPs): IAM users, IAM roles and the root user in member accounts; not the management account and not service-linked roles.
Taken from
open source set, MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE

What the policy text names

It names 3 actions or patterns: iam:CreateServiceSpecificCredential, bedrock:CallWithBearerToken, bedrock-mantle:CallWithBearerToken. Its conditions test iam:ServiceSpecificCredentialServiceName.

What the source says

bedrock:CallWithBearerToken (read 10 Nov 2026).

On what it breaks: "denies the usage of Bedrock API keys with the Amazon Bedrock and Amazon Bedrock Powered by AWS Mantle."

Sources

  1. Deny Amazon Bedrock API keys, read 10 Nov 2026
  2. What it breaks, read 10 Nov 2026
  3. How to test it first, read 10 Nov 2026

Last reviewed 16 Nov 2026.