Skip to content

Instantly share code, notes, and snippets.

@adenot
Created July 3, 2026 05:36
Show Gist options
  • Select an option

  • Save adenot/89deed866ef7b42b0976ea6bd00848bf to your computer and use it in GitHub Desktop.

Select an option

Save adenot/89deed866ef7b42b0976ea6bd00848bf to your computer and use it in GitHub Desktop.
AWS SCP to block Opus and Fable
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyOpusAndFable",
"Effect": "Deny",
"Action": [
"bedrock:InvokeModel",
"bedrock:InvokeModelWithResponseStream"
],
"Resource": [
"arn:aws:bedrock:*::foundation-model/anthropic.claude-opus*",
"arn:aws:bedrock:*::foundation-model/anthropic.claude-fable*",
"arn:aws:bedrock:*:*:inference-profile/*anthropic.claude-opus*",
"arn:aws:bedrock:*:*:inference-profile/*anthropic.claude-fable*",
"arn:aws:bedrock:*:*:application-inference-profile/*"
]
},
{
"Sid": "DenyOpusAndFableMantle",
"Effect": "Deny",
"Action": "bedrock-mantle:CreateInference",
"Resource": "*",
"Condition": {
"StringLike": {
"bedrock-mantle:Model": [
"*anthropic.claude-opus*",
"*anthropic.claude-fable*"
]
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment