Work to replace and upgrade coastal defences will begin next year after the council secured an eight-figure investment from the Environment Agency.