You can check AWS S3 documentation with a tutorial on how to properly configure your S3's access here. If you use instance profile authentication, make sure the role has permission to read/write on ...