Add the chili flakes, the turmeric, cumin, coriander and ginger. Stir well and let cook for about 1 minute or so. Pour in the coconut milk, stock, sugar and tamarind paste. Stir to combine. Bring to a boil over medium-low heat and add the long beans. Check the vegetables after about 5 minutes or so to see if they are tender, letting them cook for longer if needed.