Skip to content

Error: creating Bedrock Agent Knowledge Base #19

@athewsey

Description

@athewsey

Oops, looks like merging #16 has caused an issue with Bedrock KB permissions that I didn't spot during the review. Trying to deploy from scratch now raises:

│ Error: creating Bedrock Agent Knowledge Base
│ 
│   with module.kb_stack.module.knowledge_base.aws_bedrockagent_knowledge_base.sample_kb,
│   on modules/knowledge-base/main.tf line 45, in resource "aws_bedrockagent_knowledge_base" "sample_kb":
│   45: resource "aws_bedrockagent_knowledge_base" "sample_kb" {
│ 
│ operation error Bedrock Agent: CreateKnowledgeBase, https response error StatusCode: 400

From an initial check, restoring aoss:APIAccessAll permission on the bedrock_kb_sample_kb_model IAM role policy fixes the deployment. Just trying to figure out if there's something more granular that still works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions