-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
feat: update max length for bedrock agent instructions #40279
feat: update max length for bedrock agent instructions #40279
Conversation
Increase the maximum number of characters from 4000 to 8000.
Community NoteVoting for Prioritization
For Submitters
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
% make testacc PKG=bedrockagent TESTS=TestAccBedrockAgentAgent_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.2 test ./internal/service/bedrockagent/... -v -count 1 -parallel 20 -run='TestAccBedrockAgentAgent_' -timeout 360m
2024/12/04 09:23:30 Initializing Terraform AWS Provider...
--- PASS: TestAccBedrockAgentAgent_basic (25.80s)
--- PASS: TestAccBedrockAgentAgent_singlePrompt (26.11s)
--- PASS: TestAccBedrockAgentAgent_full (26.67s)
--- PASS: TestAccBedrockAgentAgent_singlePromptUpdate (37.27s)
--- PASS: TestAccBedrockAgentAgent_kms (42.99s)
--- PASS: TestAccBedrockAgentAgent_tags (45.47s)
--- PASS: TestAccBedrockAgentAgent_update (58.31s)
--- PASS: TestAccBedrockAgentAgent_addPrompt (62.33s)
--- PASS: TestAccBedrockAgentAgent_guardrail (65.07s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/bedrockagent 71.654s
Thanks for your contribution, @stefanfreitag! 🚀 |
This functionality has been released in v5.80.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! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
The optional
instruction
argument of the resourceaws_bedrock_agent
has a length limitation. In the AWS provider a validation has been put in place to fail-fast on invalid inputs. In the current provider version the allowed range forinstruction
is 40 - 4000 character.AWS increased the maximum number of characters to 8000.
This can be verified by checking the default account level quota, e.g. via
The output of above command is
Relations
The original issue
Another issue and pull request touching the instruction argument of the resource
aws_bedrock_agent
.References
Output from Acceptance Testing