Have you heard of LocalStack’s AWS emulator? [1] It’s runnable within a docker container and has a high fidelity S3 service.
Disclosure, I’m a SWE at LocalStack.
[1] https://github.com/localstack/localstack