Skip to content

Commit 5beb8c7

Browse files
committed
bumping to latest bedrock module version and removing redundant iam
1 parent 1cd9ec2 commit 5beb8c7

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

samples/bedrock-guardrails/main.tf

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,3 @@ module "bedrock_withguardrail" {
3838
blocked_input_messaging = var.blocked_input_messaging
3939
blocked_outputs_messaging = var.blocked_outputs_messaging
4040
}
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-
}

0 commit comments

Comments
 (0)