diff --git a/moto/elbv2/models.py b/moto/elbv2/models.py index 73bfdb468ed3..c91fd1eb5cde 100644 --- a/moto/elbv2/models.py +++ b/moto/elbv2/models.py @@ -1408,7 +1408,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,