Skip to content

Conversation

@marcinbelczewski
Copy link
Contributor

@marcinbelczewski marcinbelczewski commented Nov 18, 2025

Rollback Plan

If a change needs to be reverted, we will publish an updated version of the library.

Changes to Security Controls

No changes to security controls (access controls, encryption, logging) in this pull request.

Description

This PR adds two new data sources for AWS Bedrock Prompt Router functionality:

  1. aws_bedrock_prompt_router - Retrieves detailed information about a specific prompt router by ARN
  2. aws_bedrock_prompt_routers - Lists all available prompt routers in an AWS account/region

These data sources enable users to discover and reference existing Bedrock prompt routers for intelligent routing of prompts across multiple foundation models.

Relations

Closes #45125

References

Output from Acceptance Testing

% make testacc TESTARGS='-run=TestAccBedrockPromptRouter' PKG=bedrock AWS_PROFILE=octo1 AWS_REGION=eu-central-1

=== RUN   TestAccBedrockPromptRoutersDataSource_basic
=== PAUSE TestAccBedrockPromptRoutersDataSource_basic
=== CONT  TestAccBedrockPromptRoutersDataSource_basic
--- PASS: TestAccBedrockPromptRoutersDataSource_basic (11.01s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/bedrock	19.073s

=== RUN   TestAccBedrockPromptRouterDataSource_basic
=== PAUSE TestAccBedrockPromptRouterDataSource_basic
=== CONT  TestAccBedrockPromptRouterDataSource_basic
--- PASS: TestAccBedrockPromptRouterDataSource_basic (13.22s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/bedrock	20.839s

@github-actions
Copy link
Contributor

Community Guidelines

This comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀

Voting for Prioritization

  • Please vote on this Pull Request by adding a 👍 reaction to the original post to help the community and maintainers prioritize it.
  • Please see our prioritization guide for additional information on how the maintainers handle prioritization.
  • Please do not leave +1 or other comments that do not add relevant new information or questions; they generate extra noise for others following the Pull Request and do not help prioritize the request.

Pull Request Authors

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. generators Relates to code generators. service/bedrock Issues and PRs that pertain to the bedrock service. size/XL Managed by automation to categorize the size of a PR. external-maintainer Contribution from a trusted external contributor. labels Nov 18, 2025
@marcinbelczewski marcinbelczewski force-pushed the f-prompt-router-data-sources branch 2 times, most recently from 6b5cba6 to 25d2b06 Compare November 18, 2025 21:47
@github-actions github-actions bot added the documentation Introduces or discusses updates to documentation. label Nov 18, 2025
@marcinbelczewski marcinbelczewski force-pushed the f-prompt-router-data-sources branch from 25d2b06 to f761556 Compare November 18, 2025 23:08
@marcinbelczewski marcinbelczewski marked this pull request as ready for review November 19, 2025 02:49
@marcinbelczewski marcinbelczewski requested a review from a team as a code owner November 19, 2025 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Introduces or discusses updates to documentation. external-maintainer Contribution from a trusted external contributor. generators Relates to code generators. needs-triage Waiting for first response or review from a maintainer. service/bedrock Issues and PRs that pertain to the bedrock service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New Data Sources: aws_bedrock_prompt_router and aws_bedrock_prompt_routers

1 participant