Have a look at the AWS S3 connector module in the marketplace: https://marketplace.mendix.com/link/component/120340/Mendix/Amazon-S3-Connector
That provides all the needed functionality