Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Data Source]: Add supports for data block for aws_bedrockagent_knowledge_base #41241

Open
Jbhadviya opened this issue Feb 5, 2025 · 1 comment
Labels
new-data-source Introduces a new data source. service/bedrockagent Issues and PRs that pertain to the bedrockagent service.

Comments

@Jbhadviya
Copy link

Description

Currently only resource block is supported for aws_bedrockagent_knowledge_base
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/bedrockagent_knowledge_base

We need data block for aws_bedrockagent_knowledge_base, which allows us to get knowledge_base_id based on knowledge_base_name provided as input.

Requested Resource(s) and/or Data Source(s)

data "aws_bedrockagent_knowledge_base" "knowledge_base" {
name = "my-knowledge-base"
}

output "knowledge_base_id" {
value = data.aws_bedrockagent_knowledge_base.knowledge_base.id
}

Potential Terraform Configuration

data  "aws_bedrockagent_knowledge_base" "knowledge_base" {
    name = "my-knowledge-base"
}

output "knowledge_base_id" {
  value = data.aws_bedrockagent_knowledge_base.knowledge_base.id
}

References

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/bedrockagent_knowledge_base

Would you like to implement a fix?

None

Copy link

github-actions bot commented Feb 5, 2025

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added service/bedrockagent Issues and PRs that pertain to the bedrockagent service. needs-triage Waiting for first response or review from a maintainer. labels Feb 5, 2025
@justinretzolk justinretzolk added new-data-source Introduces a new data source. and removed needs-triage Waiting for first response or review from a maintainer. labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-data-source Introduces a new data source. service/bedrockagent Issues and PRs that pertain to the bedrockagent service.
Projects
None yet
Development

No branches or pull requests

2 participants