(Corrects paragraph 2 to show the investment will stand at $6 billion, not the figure of $7-8 billion given by the minister)

JAKARTA, Jan 30 (Reuters) - Indonesian state miner PT Aneka Tambang, the Indonesia Battery Corporation, and a consortium led by China's Zhejiang Huayou Cobalt Co. on Friday signed a framework agreement to develop a battery ecosystem in Indonesia.

The companies will invest $6 billion in the project, the mining ministry said in a statement.

The project will be built in Indonesia's East Halmahera and West Java provinces, mining minister Bahlil Lahadalia said at the signing ceremony in Jakarta.

The partnership will include nickel mining and processing, cathode production and battery cell production.

The project aims to build production capacity of 20 gigawatt-hours, Bahlil told reporters.

(Reporting by Bernadette Christina MuntheWriting by Fransiska Nangoy; Editing by David Stanway)