Press Manual or Pressure Cooker button (depending on your model) and using the arrow buttons set the cook time to 2 minutes. Use default High Pressure. It will take around 5 minutes for the Instant Pot to come to pressure.
Once the Instant Pot beeps that the 2 minutes of cooking are done, do a quick release. This will take about 1-2 minutes.
Place the egg(s) into an ice bath for about 3-4 minutes.