Assurance vs. Attestation

Pleae help. I am not understanding which areas are part/not part of assurance and attestation. From what I've read....Audits & Examination/Reviews/Agreed-upon procedures are part of Attestation. Which areas make up Assurance? Also, I swear I read that compilation was part of attestation, but I'm confused b/c I thought attestation required independence and compilations do not---how can these go together?