You can point WP to S3 two ways: (1) leave media in S3 and reference absolute URLs, or (2) “offload” uploads so WP writes to S3 and stores the URL in attachment meta.
Whichever you pick, S3 requires correct creds + endpoint and (often) path-style addressing; also ensure public reads or use signed URLs. If you’d rather not script it,
I maintain a small WordPress.org plugin that handles S3-compatible endpoints (incl. OCI path-style) and URL rewrites. https://wordpress.org/plugins/articla-media-offload-lite-for-oracle-cloud-infrastructure/