bgp lab is FRR in aws ... routing between subnet-A and subnet-B goes through various route-tables, one for the node then another for the AWS vpc, next-hops for bgp may be invalid if you do not have a direct connection
see here -- FRRouting/frr#3474
for frr 7.5.x and 8.1.x, enable the global option ...
ip nht resolve-via-default