File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -71,9 +71,3 @@ module "dde" {
7171
7272 name = " ${ local . prefix } ${ local . document_data_extraction_config . name } "
7373}
74-
75- resource "aws_iam_role_policy_attachment" "app_bedrock_access" {
76- count = local. document_data_extraction_config != null ? 1 : 0
77- role = module. service . app_role_name
78- policy_arn = module. dde [0 ]. access_policy_arn
79- }
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ data "aws_iam_policy_document" "bedrock_access" {
88 actions = [
99 " bedrock:InvokeModel" ,
1010 " bedrock:InvokeModelWithResponseStream" ,
11+ " bedrock:InvokeDataAutomationAsync" ,
1112 " bedrock:GetDataAutomationProject" ,
1213 " bedrock:GetBlueprint" ,
1314 " bedrock:StartDataAutomationJob" ,
@@ -18,7 +19,8 @@ data "aws_iam_policy_document" "bedrock_access" {
1819 resources = [
1920 awscc_bedrock_data_automation_project . bda_project . project_arn ,
2021 " ${ awscc_bedrock_data_automation_project . bda_project . project_arn } /*" ,
21- " arn:aws:bedrock:*:*:blueprint/*"
22+ " arn:aws:bedrock:*:*:blueprint/*" ,
23+ " arn:aws:bedrock:*:*:data-automation-profile/*"
2224 ]
2325 }
2426}
You can’t perform that action at this time.
0 commit comments