Indonesia has formally joined the BRICS group, a bloc of emerging economies featuring South Africa, Russia, China and others that is viewed as a counterweight to the West.