From 6e39390400dfaeeee7403f51843e4bf22fc190b1 Mon Sep 17 00:00:00 2001 From: David Mah Date: Tue, 9 Nov 2021 15:57:09 -0800 Subject: [PATCH] ListenerRule: Do not replace for priority tweaks (#296) --- internal/service/elbv2/listener_rule.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/internal/service/elbv2/listener_rule.go b/internal/service/elbv2/listener_rule.go index e1be12c9790..da3d7ad8e89 100644 --- a/internal/service/elbv2/listener_rule.go +++ b/internal/service/elbv2/listener_rule.go @@ -55,10 +55,11 @@ func ResourceListenerRule() *schema.Resource { ValidateFunc: verify.ValidARN, }, "priority": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - ForceNew: true, + Type: schema.TypeInt, + Optional: true, + Computed: true, + // ForceNew: true is not needed as this provider does use SetRulePriorities for updates + // https://github.com/hashicorp/terraform-provider-aws/pull/9848 ValidateFunc: validListenerRulePriority, }, "action": {