The Australian plate borders the Pacific plate to the East (the Samoan quake occurred along this boundary), while on the Western side, it borders the Eurasian plate (where the Indonesia quake occurred).
CNN: Two quakes in the same region in a day - coincidence?