Skip to content

[New Resource] aws_bedrockagent_agent_collaborator to manage multi-agent collaboration #40559

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

Merged
merged 30 commits into from
Jan 8, 2025

Conversation

drewtul
Copy link
Contributor

@drewtul drewtul commented Dec 13, 2024

Description

Relations

Depends on #40543

References

Output from Acceptance Testing

%  make testacc TESTS=TestAccBedrockAgentAgentCollaborator_ PKG=bedrockagent
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/bedrockagent/... -v -count 1 -parallel 20 -run='TestAccBedrockAgentAgentCollaborator_'  -timeout 360m
2025/01/07 11:06:36 Initializing Terraform AWS Provider...
=== RUN   TestAccBedrockAgentAgentCollaborator_basic
=== PAUSE TestAccBedrockAgentAgentCollaborator_basic
=== RUN   TestAccBedrockAgentAgentCollaborator_update
=== PAUSE TestAccBedrockAgentAgentCollaborator_update
=== RUN   TestAccBedrockAgentAgentCollaborator_disappears
=== PAUSE TestAccBedrockAgentAgentCollaborator_disappears
=== CONT  TestAccBedrockAgentAgentCollaborator_basic
=== CONT  TestAccBedrockAgentAgentCollaborator_disappears
=== CONT  TestAccBedrockAgentAgentCollaborator_update
--- PASS: TestAccBedrockAgentAgentCollaborator_disappears (39.52s)
--- PASS: TestAccBedrockAgentAgentCollaborator_basic (42.11s)
--- PASS: TestAccBedrockAgentAgentCollaborator_update (62.38s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/bedrockagent       66.750s
% make testacc TESTS=TestAccBedrockAgentAgent_ PKG=bedrockagent
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/bedrockagent/... -v -count 1 -parallel 20 -run='TestAccBedrockAgentAgent_'  -timeout 360m
2025/01/07 16:52:18 Initializing Terraform AWS Provider...
=== RUN   TestAccBedrockAgentAgent_basic
=== PAUSE TestAccBedrockAgentAgent_basic
=== RUN   TestAccBedrockAgentAgent_full
=== PAUSE TestAccBedrockAgentAgent_full
=== RUN   TestAccBedrockAgentAgent_singlePrompt
=== PAUSE TestAccBedrockAgentAgent_singlePrompt
=== RUN   TestAccBedrockAgentAgent_singlePromptUpdate
=== PAUSE TestAccBedrockAgentAgent_singlePromptUpdate
=== RUN   TestAccBedrockAgentAgent_addPrompt
=== PAUSE TestAccBedrockAgentAgent_addPrompt
=== RUN   TestAccBedrockAgentAgent_guardrail
=== PAUSE TestAccBedrockAgentAgent_guardrail
=== RUN   TestAccBedrockAgentAgent_update
=== PAUSE TestAccBedrockAgentAgent_update
=== RUN   TestAccBedrockAgentAgent_tags
=== PAUSE TestAccBedrockAgentAgent_tags
=== RUN   TestAccBedrockAgentAgent_kms
=== PAUSE TestAccBedrockAgentAgent_kms
=== RUN   TestAccBedrockAgentAgent_agentCollaboration
=== PAUSE TestAccBedrockAgentAgent_agentCollaboration
=== CONT  TestAccBedrockAgentAgent_basic
=== CONT  TestAccBedrockAgentAgent_guardrail
=== CONT  TestAccBedrockAgentAgent_kms
=== CONT  TestAccBedrockAgentAgent_singlePromptUpdate
=== CONT  TestAccBedrockAgentAgent_update
=== CONT  TestAccBedrockAgentAgent_tags
=== CONT  TestAccBedrockAgentAgent_singlePrompt
=== CONT  TestAccBedrockAgentAgent_agentCollaboration
=== CONT  TestAccBedrockAgentAgent_full
=== CONT  TestAccBedrockAgentAgent_addPrompt
--- PASS: TestAccBedrockAgentAgent_basic (33.35s)
--- PASS: TestAccBedrockAgentAgent_singlePrompt (34.30s)
--- PASS: TestAccBedrockAgentAgent_full (36.80s)
--- PASS: TestAccBedrockAgentAgent_agentCollaboration (48.79s)
--- PASS: TestAccBedrockAgentAgent_kms (54.86s)
--- PASS: TestAccBedrockAgentAgent_singlePromptUpdate (56.24s)
--- PASS: TestAccBedrockAgentAgent_tags (65.82s)
--- PASS: TestAccBedrockAgentAgent_update (66.13s)
--- PASS: TestAccBedrockAgentAgent_guardrail (85.61s)
--- PASS: TestAccBedrockAgentAgent_addPrompt (86.28s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/bedrockagent       91.811s

Copy link

Community Note

Voting for Prioritization

  • Please vote on this pull request by adding a 👍 reaction to the original post to help the community and maintainers prioritize this pull request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • 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 documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. generators Relates to code generators. service/bedrockagent Issues and PRs that pertain to the bedrockagent service. needs-triage Waiting for first response or review from a maintainer. partner Contribution from a partner. labels Dec 13, 2024
@justinretzolk justinretzolk added new-resource Introduces a new resource. and removed needs-triage Waiting for first response or review from a maintainer. labels Dec 13, 2024
@drewtul drewtul marked this pull request as ready for review January 7, 2025 16:40
@drewtul drewtul requested a review from a team as a code owner January 7, 2025 16:40
@ewbankkit ewbankkit self-assigned this Jan 7, 2025
@github-actions github-actions bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Jan 7, 2025
ewbankkit
ewbankkit previously approved these changes Jan 8, 2025
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀.

% make testacc TESTARGS='-run=TestAccBedrockAgentAgentCollaborator_\|TestAccBedrockAgentAgent_' PKG=bedrockagent ACCTEST_PARALLELISM=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/bedrockagent/... -v -count 1 -parallel 3  -run=TestAccBedrockAgentAgentCollaborator_\|TestAccBedrockAgentAgent_ -timeout 360m
2025/01/08 09:03:12 Initializing Terraform AWS Provider...
=== RUN   TestAccBedrockAgentAgentCollaborator_basic
=== PAUSE TestAccBedrockAgentAgentCollaborator_basic
=== RUN   TestAccBedrockAgentAgentCollaborator_update
=== PAUSE TestAccBedrockAgentAgentCollaborator_update
=== RUN   TestAccBedrockAgentAgentCollaborator_disappears
=== PAUSE TestAccBedrockAgentAgentCollaborator_disappears
=== RUN   TestAccBedrockAgentAgent_basic
=== PAUSE TestAccBedrockAgentAgent_basic
=== RUN   TestAccBedrockAgentAgent_full
=== PAUSE TestAccBedrockAgentAgent_full
=== RUN   TestAccBedrockAgentAgent_singlePrompt
=== PAUSE TestAccBedrockAgentAgent_singlePrompt
=== RUN   TestAccBedrockAgentAgent_singlePromptUpdate
=== PAUSE TestAccBedrockAgentAgent_singlePromptUpdate
=== RUN   TestAccBedrockAgentAgent_addPrompt
=== PAUSE TestAccBedrockAgentAgent_addPrompt
=== RUN   TestAccBedrockAgentAgent_guardrail
=== PAUSE TestAccBedrockAgentAgent_guardrail
=== RUN   TestAccBedrockAgentAgent_update
=== PAUSE TestAccBedrockAgentAgent_update
=== RUN   TestAccBedrockAgentAgent_tags
=== PAUSE TestAccBedrockAgentAgent_tags
=== RUN   TestAccBedrockAgentAgent_kms
=== PAUSE TestAccBedrockAgentAgent_kms
=== RUN   TestAccBedrockAgentAgent_agentCollaboration
=== PAUSE TestAccBedrockAgentAgent_agentCollaboration
=== CONT  TestAccBedrockAgentAgentCollaborator_basic
=== CONT  TestAccBedrockAgentAgent_addPrompt
=== CONT  TestAccBedrockAgentAgent_full
--- PASS: TestAccBedrockAgentAgent_full (21.42s)
=== CONT  TestAccBedrockAgentAgent_singlePromptUpdate
--- PASS: TestAccBedrockAgentAgentCollaborator_basic (32.51s)
=== CONT  TestAccBedrockAgentAgentCollaborator_disappears
--- PASS: TestAccBedrockAgentAgent_singlePromptUpdate (29.17s)
=== CONT  TestAccBedrockAgentAgent_basic
--- PASS: TestAccBedrockAgentAgent_addPrompt (54.93s)
=== CONT  TestAccBedrockAgentAgent_tags
--- PASS: TestAccBedrockAgentAgentCollaborator_disappears (31.63s)
=== CONT  TestAccBedrockAgentAgent_agentCollaboration
--- PASS: TestAccBedrockAgentAgent_basic (19.33s)
=== CONT  TestAccBedrockAgentAgent_kms
--- PASS: TestAccBedrockAgentAgent_agentCollaboration (26.24s)
=== CONT  TestAccBedrockAgentAgent_update
--- PASS: TestAccBedrockAgentAgent_tags (39.45s)
=== CONT  TestAccBedrockAgentAgent_singlePrompt
--- PASS: TestAccBedrockAgentAgent_kms (35.08s)
=== CONT  TestAccBedrockAgentAgent_guardrail
--- PASS: TestAccBedrockAgentAgent_singlePrompt (19.54s)
=== CONT  TestAccBedrockAgentAgentCollaborator_update
--- PASS: TestAccBedrockAgentAgent_update (39.52s)
--- PASS: TestAccBedrockAgentAgent_guardrail (51.96s)
--- PASS: TestAccBedrockAgentAgentCollaborator_update (50.15s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/bedrockagent	169.447s

Copy link
Member

@jar-b jar-b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few documentation nits, otherwise LGTM

It's not a hard requirement yet, but we could also remove the id attribute in favor of setting the mutli-part key values during import, if desired.

Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀.

@ewbankkit
Copy link
Contributor

@drewtul Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit ec7adc7 into hashicorp:main Jan 8, 2025
43 checks passed
@github-actions github-actions bot added this to the v5.83.0 milestone Jan 8, 2025
@drewtul drewtul deleted the f-bedrock-agent-collab-associate branch January 8, 2025 16:55
@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Jan 9, 2025
Copy link

github-actions bot commented Jan 9, 2025

This functionality has been released in v5.83.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!

Copy link

github-actions bot commented Feb 9, 2025

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. generators Relates to code generators. new-resource Introduces a new resource. partner Contribution from a partner. service/bedrockagent Issues and PRs that pertain to the bedrockagent service. 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.

4 participants