Elon Musk, here seen at an event in New York in early-May, is being aggressively courted to produce his electric vehicles "end to end" in resource-rich Indonesia.

The gates remain open to all players who want to use the country's plentiful natural resources, if they set up plants that can add value to the local economy, according to the president.

The president of Indonesia, known as Jokowi, said that the government is in talks with electric carmakers and other car companies to set up manufacturing facilities in Indonesia.

The Indonesian president said he met Musk after the U.S. president hosted a summit for Southeast Asians. He suggested that the entire supply chain be based in the country.

We had a lot of discussions about how to build the industry from the upstream to the downstream, from the vehicle factory to the EV battery industry. That's very efficient. In an interview with CNBC on Friday, he said that he offered that.

He said Musk sent a team to Indonesia to check the potential of nickel, but the car-related team has not come.

A team could visit soon to evaluate the potential. There is no decision yet on Musk's plans to invest in Indonesia, according to Jokowi.

We want to build an industrial ecosystem for lithium batteries.

Some of the key materials for electric vehicle batteries are found in Indonesia.

Indonesia has banned the export of nickel, coal, and oil in 2020. Domestic prices were the last measure to be taken.

I don't think it's protectionist. We want it to be in Indonesia. The people who get the added value are other countries if we keep exporting raw materials.

Indonesia wants to move away from exporting raw materials in order to boost its economy. It wants to be a manufacturer of electric cars.

Jokowi wants to create jobs and generate tax revenue by building an industrial system for batteries.