1 Answer
- Newest
- Most votes
- Most comments
0
Hello.
How about setting up an SCP like this:
When you create a Bedrock API key, an IAM user is created with a name like "BedrockAPIKey-1234".
Therefore, I thought that if I could restrict the creation of IAM users with names starting with "BedrockAPIKey", IAM users would not be created.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "test",
"Effect": "Deny",
"Action": "iam:CreateUser",
"Resource": "arn:aws:iam::*:user/BedrockAPIKey*"
}
]
}
Relevant content
asked 2 years ago
asked 7 months ago

Tried that approach and kept that as last option because but what if there is some team who wants to create a use with that name. In that case this SCP block that. I think this is a design issue on AWS part. When the SCP is blocking them from creating the keys, the user shouldn't be created in the first place