using aws-sdk gem makes it functionnal