changed argument order to be consistent, first needing aws credential