Found a great command line tool for uploading content to s3 its called s3cmd. Was not able to find a resource anywhere so here is the command I used to set expires of an year s3cmd put --add-header="Expires:`date -u +"%a, %d %b %Y %H:%M:%S GMT" --date "next Year"`" --add-header='Cache-Control:max-age=31536000, public' Change the seconds and the –date value to your requirement of expiry time