---
title: "Comment by Keith McDuffee on \"How To Manage an Amazon Bedrock Agent Using Terraform\" | Hashnode"
description: "The aws_bedrockagent_agent now has a prepare_agent flag, so the null resource should be unnecessary now."
url: "https://hashnode.com/posts/how-to-manage-an-amazon-bedrock-agent-using-terraform/6631c56c95bfbcda61a25f54/comment/664f2cd60a7a9938def88fdc"
---

[Discussion](https://hashnode.com/posts/how-to-manage-an-amazon-bedrock-agent-using-terraform/6631c56c95bfbcda61a25f54)

Comment [How To Manage an Amazon Bedrock Agent Using Terraform](https://hashnode.com/posts/how-to-manage-an-amazon-bedrock-agent-using-terraform/6631c56c95bfbcda61a25f54)

[Keith McDuffee](https://hashnode.com/@Gudlyf)

[May 23, 2024](https://hashnode.com/posts/how-to-manage-an-amazon-bedrock-agent-using-terraform/6631c56c95bfbcda61a25f54/comment/664f2cd60a7a9938def88fdc)

The `aws_bedrockagent_agent` now has a `prepare_agent` flag, so the null resource should be unnecessary now.

[Anthony Wat](https://hashnode.com/@acwwat)

[May 24, 2024](https://hashnode.com/posts/how-to-manage-an-amazon-bedrock-agent-using-terraform/6631c56c95bfbcda61a25f54/comment/664f2cd60a7a9938def88fdc#reply-664ff39d39de0109b16f86fc)

Thanks for your comment!

This new argument is only part of the solution, as changes to action groups still requires a PrepareAgent call. There is also a similar case with knowledge base attachments. Nonetheless it's a good idea to add the argument so there's one less dependency - I'll update the blog post and code example soon.

Hopefully I can get to adding similar arguments to the action group and KB resources, unless there are takers :)
