-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[New Resource] aws_bedrockagent_agent_prepare #43354
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
base: main
Are you sure you want to change the base?
Conversation
…andards for framework resource
Community GuidelinesThis 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
Pull Request Authors
|
resp.Diagnostics.Append(resp.State.Set(ctx, &state)...) | ||
} | ||
|
||
func (r *resourceAgentPrepare) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { |
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.
Shouldn't this prepare the agent on subsequent applies if it has changed?
The agent resource currently does this: https://github.com/hashicorp/terraform-provider-aws/blame/main/internal/service/bedrockagent/agent.go#L352
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.
There isn't any attributes on this resource you can use to trigger an update, it would need to use lifecycle
arguments to trigger a replacement when the agent or any resources associated with the agent are updated.
Rollback Plan
If a change needs to be reverted, we will publish an updated version of the library.
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
Description
New Resource
aws_bedrockagent_agent_prepare
to allow direct preparing of an agent to give finer control where there are multiple resources and/or collaborators being associated with the agent.Relations
Closes #43059.
Closes #43129.
References
Output from Acceptance Testing