Install the AWS CLI (https://aws.amazon.com/cli/) and choose whatever method you like for making an encrypted local backup. Then sync that backup partition to S3 every day.
Here's an example command you can adapt for cron to call via a shell script:
/home/tom/.local/bin/aws s3 sync /mnt/backups/daily s3://your-s3-bucket-name --storage-class STANDARD_IA --acl private --sse
The -sse means server side encryption which is redundant since I've encrypted the data prior to uploading, but why not?To backup nearly a terabyte of photos costs about $4/month in storage costs. Uploading costs a bit extra due to the pricing for requests.
I looked into Glacier a couple of years ago, and, from memory, restore costs were insane.
I'd highly recommend not repeating my mistake - use a real backup service for your actual data. Though rolling your own can be fun and interesting, it's probably a bad idea to bet your data on it.
As others have said, if you're just trying to back up your Mac, take a look at Arq.
Disclosure: I work on Google Cloud (and get $30/month of credit, so my first 3 TB are free).
Note: Glacier is not a backup service, it's an archive service. It's for long term backups, vs the relatively short term of standard backups (Full, delta, delta.. cycles). With Glacier if you delete an archive before 90 days, you'll still be charged for the full 90 days of storage.