One can obtain permanent residency in Indonesia after 3 years of holding a temporary stay permit (ITAS). One of the ways to get ITAS is to obtain a second home visa by investing $130,000 in a bank deposit or real estate in Indonesia.