Plug Instant Pot in power, press Saute mode, and heat oil or liquid if oil-free. Saute onion, garlic, green onion, celery, ginger and cook for about 3 minutes stirring constantly.
Add thyme, allspice, carrots, potatoes, cayenne pepper, salt, lentil, water, vegetable bouillon and coconut milk. Stir.
Cover Instant Pot and set at manual setting for 15 minutes making sure the valve is on 'Sealing'
Use quick release to let the steam out (be careful steam burns) and serve.
if using stove top, follow instructions above and cook for 25-30 minutes on medium-high heat in a large pot.