File tree Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ provider "opensearch" {
14
14
module "bedrock" {
15
15
# checkov:skip=CKV_TF_1:Terraform registry has no ability to use a commit hash
16
16
source = " aws-ia/bedrock/aws"
17
- version = " 0.0.5 "
17
+ version = " 0.0.6 "
18
18
create_kb = true
19
19
create_default_kb = true
20
20
create_agent = true
@@ -47,24 +47,3 @@ module "lambda" {
47
47
}
48
48
]
49
49
}
50
-
51
- resource "aws_lambda_permission" "allow_bedrock_agent" {
52
- action = " lambda:InvokeFunction"
53
- function_name = module. lambda . lambda_function_arn
54
- principal = " bedrock.amazonaws.com"
55
- source_arn = module. bedrock . bedrock_agent [0 ]. agent_arn
56
- }
57
-
58
- resource "aws_iam_role_policy" "agent_policy" {
59
- policy = jsonencode ({
60
- Version = " 2012-10-17"
61
- Statement = [
62
- {
63
- Effect = " Allow"
64
- Action = " lambda:InvokeModel"
65
- Resource = module.lambda.lambda_function_arn
66
- }
67
- ]
68
- })
69
- role = split (" /" , provider::aws::arn_parse (module. bedrock . bedrock_agent [0 ]. agent_resource_role_arn ). resource )[1 ]
70
- }
You can’t perform that action at this time.
0 commit comments