If you bought corn on the cob still in the husk, shuck the corn and try to remove all the silk and husk from the corn.
Place the metal trivet into the bottom of the Instant Pot liner then pour in 1 cup of water. Stack the corn in an alternating fashion. Cook the corn using the manual function on the Instant Pot. Make sure the vent is flipped over to sealed. Press Manual, adjust the time to 2 minutes, and High Pressure. It will take about 10 minutes for it to come to pressure.
Once the corn is done cooking, manual release the pressure by flipping the vent to venting then remove the lid once the pressure is released fully. Carefully remove the corn and serve warm!