I think that the well-being and socioeconomic status of the caregiver greatly impacts a child's development and ability to form attachments.
A caregiver who is of better socioeconomic status will be more secure in themselves, and have less stress and angst associated with the outside world that might influence its patience or ability to devote time to the child. A more secure caregiver would be a better provider of the care a child needs, and be better at fostering secure attachments than other providers.
A good and well-off caregiver will be a better influence to a child than a bad one. A good caregiver will have more emotional patience for the child, be able to provide better material wealth for the child, and be able to give that child a more diverse view of the world (ex. traveling). However, that does not necessarily mean that a good attachment style will bring about a good life. There are other factors to consider, such as peer influence and politics. Also, the good caregiver might be a mental burden when the caregiver dies and the child is not able to forget the caregiver.