hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.84k stars 9.19k forks source link

[Enhancement]: Need a mechanism to attach lambda funtction to be attached to the resources for AWS Knowledge Base"aws_bedrockagent_data_source" #39506

Closed premk55 closed 1 month ago

premk55 commented 1 month ago

Description

It seems That terraform Aws has an option to attach lambda function and S3 for function data to knowledge base, through aws console with custom chunking mechanism, wasnt able to find a config to pass that using terraform need that parameter to be available ton pass lambda function arn for knowledge base

select lambda function with version

select s3 bucket for lambda function output

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

aws_bedrockagent_data_source

Potential Terraform Configuration

resource "aws_bedrockagent_data_source" "example" {
  knowledge_base_id = "EMDPPAYPZI"
  name              = "example"
  data_source_configuration {
    type = "S3"
    s3_configuration {
      bucket_arn = "arn:aws:s3:::example-bucket"
    }
  }
chunking_configuration {
chunking_strategy = "lambda"
function_arn = "My_function"
S3_bucket. = "MyBucket"
}
}

References

https://aws.amazon.com/blogs/machine-learning/amazon-bedrock-knowledge-bases-now-supports-advanced-parsing-chunking-and-query-reformulation-giving-greater-control-of-accuracy-in-rag-based-applications/

Would you like to implement a fix?

No

github-actions[bot] commented 1 month ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

drewtul commented 1 month ago

@premk55 Reading this I think this is the same as #39487 as it looks like the example you link is a custom transformation. If so it'll be fixed in #39556

github-actions[bot] commented 1 month ago

[!WARNING] This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

github-actions[bot] commented 1 month ago

This functionality has been released in v5.70.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

github-actions[bot] commented 1 week ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.