From 98313e6c846b60b9e8c6d232e7d3e3ab51372bd2 Mon Sep 17 00:00:00 2001 From: Kit Ewbank Date: Thu, 18 Apr 2024 17:03:49 -0400 Subject: [PATCH] r/aws_bedrockagent_agent: Always set 'agent_version' in Update. --- internal/service/bedrockagent/agent.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/service/bedrockagent/agent.go b/internal/service/bedrockagent/agent.go index 28039a531f4..75bb4d13010 100644 --- a/internal/service/bedrockagent/agent.go +++ b/internal/service/bedrockagent/agent.go @@ -324,6 +324,8 @@ func (r *agentResource) Update(ctx context.Context, request resource.UpdateReque if response.Diagnostics.HasError() { return } + } else { + new.AgentVersion = old.AgentVersion } response.Diagnostics.Append(response.State.Set(ctx, &new)...)