diff --git a/moto/elbv2/models.py b/moto/elbv2/models.py index 7dd4d4d75b8e..312062636095 100644 --- a/moto/elbv2/models.py +++ b/moto/elbv2/models.py @@ -1372,7 +1372,7 @@ def create_listener( arn = ( load_balancer_arn.replace(":loadbalancer/", ":listener/") - + f"/{port}{id(self)}" + + f"/{mock_random.get_random_hex(16)}" ) listener = FakeListener( load_balancer_arn,