[New Data Source]: Add supports for data block for aws_bedrockagent_knowledge_base #41241
Labels
new-data-source
Introduces a new data source.
service/bedrockagent
Issues and PRs that pertain to the bedrockagent service.
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
References
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/bedrockagent_knowledge_base
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: