Turn Instant Pot to saute, add oil, and let heat. Saute onions until just softened and then add in the garlic saute for just a minute longer. Turn IP off.
Once the soup has cooked, and the pressure has been released, remove the chickena and shred. Return it to the Instant Pot and stir in fresh lime juice.