Set Up the Instant Pot
Set the Instant Pot to Sauté mode. Add a splash of oil if desired and sauté the chopped onion, scallions, garlic, and grated ginger for 2–3 minutes, until softened and fragrant.
Add the Beans and Spices
Turn off the Sauté function. Add the soaked kidney beans (or canned beans if using), water, allspice berries, thyme sprigs, Scotch bonnet pepper, salt, and pepper. Stir to combine.
Cook the Beans
Secure the Instant Pot lid and ensure the valve is set to Sealing. Select Pressure Cook (or Manual) on High Pressure for 25–30 minutes. If using canned beans, reduce this time to 5 minutes. Allow for a 10-minute natural release, then carefully release any remaining pressure.
Add the Coconut Milk and Rice
Open the lid, stir in the coconut milk, and add the rinsed rice. Give it a good mix, ensuring the rice is submerged in the liquid.
Pressure Cook the Rice
Place the lid back on the Instant Pot and set the valve to Sealing. Select Pressure Cook on High Pressure for 5 minutes. After cooking, allow a 10-minute natural release, then carefully perform a quick release of any remaining pressure.
Fluff and Serve
Remove the lid, discard the thyme sprigs, allspice berries, and Scotch bonnet pepper. Fluff the rice and peas with a fork. Taste and adjust seasoning if needed, adding more salt if necessary.
Serve Hot
Serve your flavorful Jamaican rice and peas as a side dish or a main course with your favorite meal!