Wire the guarded conversational RAG answer layer end-to-end
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"Version": "2012-10-17",
|
||||
"Statement": [
|
||||
{
|
||||
"Sid": "ReadModelAccessState",
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"bedrock:GetFoundationModelAvailability",
|
||||
"bedrock:ListFoundationModelAgreementOffers",
|
||||
"bedrock:GetUseCaseForModelAccess",
|
||||
"bedrock:PutUseCaseForModelAccess"
|
||||
],
|
||||
"Resource": "*"
|
||||
},
|
||||
{
|
||||
"Sid": "AcceptTheModelAgreement",
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"bedrock:CreateFoundationModelAgreement"
|
||||
],
|
||||
"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"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Sid": "MarketplaceSubscribeOnlyViaBedrock",
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"aws-marketplace:ViewSubscriptions",
|
||||
"aws-marketplace:Subscribe"
|
||||
],
|
||||
"Resource": "*",
|
||||
"Condition": {
|
||||
"StringEquals": {
|
||||
"aws:CalledViaLast": "bedrock.amazonaws.com"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user