File tree Expand file tree Collapse file tree 3 files changed +4
-41
lines changed Expand file tree Collapse file tree 3 files changed +4
-41
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ This project is built using [Terraform](https://www.terraform.io/). See [Getting
85
85
` ` ` shell
86
86
python -m venv .venv
87
87
source .venv/bin/activate
88
- pip install poetry
88
+ pip install poetry==1.8.3
89
89
` ` `
90
90
91
91
4. Initialize the neccessary Terraform providers.
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.7 "
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
- }
Original file line number Diff line number Diff line change 1
1
module "bedrock_withoutguardrail" {
2
2
# checkov:skip=CKV_TF_1:Terraform registry has no ability to use a commit hash
3
3
source = " aws-ia/bedrock/aws"
4
- version = " 0.0.6 "
4
+ version = " 0.0.7 "
5
5
create_kb = false
6
6
create_default_kb = false
7
7
create_s3_data_source = false
@@ -17,7 +17,7 @@ module "bedrock_withoutguardrail" {
17
17
module "bedrock_withguardrail" {
18
18
# checkov:skip=CKV_TF_1:Terraform registry has no ability to use a commit hash
19
19
source = " aws-ia/bedrock/aws"
20
- version = " 0.0.6 "
20
+ version = " 0.0.7 "
21
21
create_kb = false
22
22
create_default_kb = false
23
23
create_s3_data_source = false
@@ -38,19 +38,3 @@ module "bedrock_withguardrail" {
38
38
blocked_input_messaging = var. blocked_input_messaging
39
39
blocked_outputs_messaging = var. blocked_outputs_messaging
40
40
}
41
-
42
- resource "aws_iam_role_policy" "guardrail_policy" {
43
- policy = jsonencode ({
44
- Version = " 2012-10-17"
45
- Statement = [
46
- {
47
- Effect = " Allow"
48
- Action = [
49
- " bedrock:ApplyGuardrail" ,
50
- ]
51
- Resource = module.bedrock_withguardrail.bedrock_agent[0 ].guardrail_configuration.guardrail_identifier
52
- }
53
- ]
54
- })
55
- role = split (" /" , provider::aws::arn_parse (module. bedrock_withguardrail . bedrock_agent [0 ]. agent_resource_role_arn ). resource )[1 ]
56
- }
You can’t perform that action at this time.
0 commit comments