Skip to content

Commit aa862d9

Browse files
authored
Update Deny-Bedrock-Api-Keys.json
1 parent 2bca848 commit aa862d9

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

Service-Specific-Controls/Deny-Bedrock-Api-Keys.json

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@
22
"Version": "2012-10-17",
33
"Statement": [
44
{
5-
"Sid":"DenyBedrockShortAndLongTermAPIKeys",
65
"Effect": "Deny",
7-
"Action": [
8-
"iam:CreateServiceSpecificCredential",
9-
"bedrock:CallWithBearerToken"
10-
],
11-
"Resource": [
12-
"*"
13-
]
6+
"Action": "iam:CreateServiceSpecificCredential",
7+
"Resource": "*",
8+
"Condition": {
9+
"StringEquals": {
10+
"iam:ServiceSpecificCredentialServiceName": "bedrock.amazonaws.com"
11+
}
12+
}
13+
},
14+
{
15+
"Effect": "Deny",
16+
"Action": "bedrock:CallWithBearerToken",
17+
"Resource": "*"
1418
}
1519
]
1620
}

0 commit comments

Comments
 (0)