How to make the best soft and hard boiled eggs in the Instant Pot (or electric pressure cooker of your choice). A method that takes less than 10 minutes total, and most of that time is completely hands-off.
Place the trivet rack on the bottom of the Instant Pot liner.
Pour 1 cup of water into the Instant Pot liner.
Place as many eggs as desired on top of the trivet rack. I find that 8 is the most I can fit on the trivet rack, which is why I recommended 8. You can cook as many or as few as desired. The water will not touch the eggs.
Secure the lid and set to Sealing. Set to Manual, High Pressure for 3 minutes for a soft and slightly runny yolk, 4 minutes for a slightly soft and slightly firm yolk, or 5 minutes for a firm and cooked yolk (hard boiled).
While the eggs cook, prepare an ice bath. Fill a large bowl with cold water and add several ice cubes to the water. Remove the eggs from the Instant Pot and place them in the ice bath. A large spoon or measuring cup works well, or a small sieve.
As soon as the cooking time is over, perform a quick release (use a towel or hot pad holder).
Allow the eggs to rest in the ice bath for 5 minutes, then remove and peel. I find it's easiest to remove the shells under running water. Store the eggs in a container with a lid in the fridge for up to a week.