From 6d5b6d979499096908a082b44ebc983b9e1c3b42 Mon Sep 17 00:00:00 2001 From: David Mah Date: Wed, 28 Jul 2021 10:44:38 -0700 Subject: [PATCH] ListenerRule: Do not replace for priority tweaks --- aws/resource_aws_lb_listener_rule.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/aws/resource_aws_lb_listener_rule.go b/aws/resource_aws_lb_listener_rule.go index 4945fa860e0..5d0d2a61885 100644 --- a/aws/resource_aws_lb_listener_rule.go +++ b/aws/resource_aws_lb_listener_rule.go @@ -44,10 +44,11 @@ func resourceAwsLbbListenerRule() *schema.Resource { ValidateFunc: validateArn, }, "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: validateAwsLbListenerRulePriority, }, "action": {