For the eggs, hard boil them your favorite way but cut back on the time by 1 minute or so for a creamier yolk, if that is not desired, just hard boil the eggs as you prefer. Peel the eggs after they are cooked. If using 4 eggs, go with the lesser amount of coconut milk, if using 6 eggs, use the larger amount of coconut milk.
In a pot, add the stock and coconut milk and bring to a boil.
While the stock is heating, place the onion, garlic, sambal oelek (or one chili), tamarind, ginger, galangal, and turmeric in a mortar and mash with the pestle until you have a paste. You can also use a blender if you like.
Once the stock is at a boil, add the mixture from the mortar to the pot along with the eggs. Simmer for 3-4 minutes.
Serve as an appetizer or with rice for a main dish.