You should follow the instructions in Configure an S3 compatible object storage provider for uploads and/or Set up file and image uploads to S3 and put those settings in your yml file rather than in the database/UX.
You don’t need to configure an endpoint for AWS. You do want to configure a CDN.