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
[Bug]: aws_bedrock_foundation_models data source has incorrect regex validation for by_provider #37305
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
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. |
This functionality has been released in v5.50.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! |
Terraform Core Version
1.4.7
AWS Provider Version
5.48.0
Affected Resource(s)
The
aws_bedrock_foundation_models
data source has an attributeby_provider
that has an incorrect regex validator.Expected Behavior
I am able to search by provider names with upper case letters and spaces - the provider
Mistral AI
fits this description. This is permitted by the AWS ListFoundationalModels API, which lists a validation pattern of^[A-Za-z0-9- ]{1,63}$
.Actual Behavior
The validator reports an error with an incorrect regex requirement
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Run
terraform validate
with the above code snippet.Mistral AI
is a valid provider name (and one of the providers returned by the data source when you search with no filters), but there is no way of specifying this provider.Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
AWS API Reference: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListFoundationModels.html
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: