Planning to travel from Puerto Maldonado Amazon Peru to Costa Rica.
Can get direct flight from PM Amazon to Lima arrives 10.15AM.
Costa Rica flight leaves at 12.45PM. So 2hr 30mins to get the connecting flight is this doable/feasible or very risky?
Connecting flights
That sounds reasonable if your inbound flight is on time. Lima airport say arrive 3hrs ahead for international flights but surely that's just usual caution and to get you shopping.
The more important bit is whether your inbound flight is on time, and you don't say which carrier. Assuming LATAM, a google doesn't suggest that route has particular problems. LA2259 runs on time 90% of the time, with no significant delays shown in the stats.
It's always a risk, flying in the same day. Up to you.