Files
duocthu/infra/aws/iam/bedrock-embedding-invoke.json

40 lines
1.2 KiB
JSON

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ListModelsToConfirmAccess",
"Effect": "Allow",
"Action": [
"bedrock:ListFoundationModels"
],
"Resource": "*"
},
{
"Sid": "ReadModelMetadata",
"Effect": "Allow",
"Action": [
"bedrock:GetFoundationModel"
],
"Resource": "*"
},
{
"Sid": "InvokeModels",
"Effect": "Allow",
"Action": [
"bedrock:InvokeModel",
"bedrock:InvokeModelWithResponseStream"
],
"Resource": [
"arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0",
"arn:aws:bedrock:us-east-1::foundation-model/cohere.embed-v4:0",
"arn:aws:bedrock:us-east-1::foundation-model/cohere.rerank-v3-5:0",
"arn:aws:bedrock:us-east-1::foundation-model/deepseek.v3.2",
"arn:aws:bedrock:us-east-1::foundation-model/qwen.qwen3-next-80b-a3b",
"arn:aws:bedrock:us-east-1::foundation-model/qwen.qwen3-32b-v1:0",
"arn:aws:bedrock:us-east-1::foundation-model/openai.gpt-oss-120b-1:0",
"arn:aws:bedrock:us-east-1::foundation-model/openai.gpt-oss-20b-1:0"
]
}
]
}