Backup Ubidots data to AWS S3

When I try connecting aws to ubidots using the acceskeyid and secretkey, Ubidots says it was not possible to create the role.