It is likely that your new water heater has a magnesium anode. If so that is the likely cause. You can either remove it or replace it with an aluminum anode to get rid of that odor. Replacing or removing must be done with care. You don’t want to leave a piece of the magnesium rod in the tank. You should also chlorinate the tank with 2 cups of household unscented bleach. Leave it in the unit for 2-4 hours and then flush it. This job is best done, either way, by a plumber.
If the odor continues after that then you will likely need some water treatment. If it does it is likely caused by Sulfate Reducing Bacteria. The solution for that is to either occasionally shock treat the well with bleach or buy a continuous chlorination system.