Passing --endpoint-url to every command is not practical for real applications. AWS recommends using DNS: on-premises resolvers forward queries for s3.<region>.amazonaws.com to a Route 53 Resolver inbound endpoint, which answers from a private hosted zone that points to the interface endpoint.
In this lab, the outbound endpoint in VPC On-prem plays the role of the corporate DNS server that forwards queries.

*.vpce-...s3.<region>.vpce.amazonaws.com)
*, type A, Alias to the same VPC endpoint. The wildcard covers virtual-hosted bucket names such as <bucket>.s3.<region>.amazonaws.com.


fcj-s3-forward-rules3.<region>.amazonaws.com


Back in the Test-Interface-Endpoint session, run:
getent hosts <your-bucket-name>.s3.<region>.amazonaws.com
aws s3 ls s3://<your-bucket-name> --region <your-region>
The standard S3 hostname now resolves to the private IPs of the interface endpoint, and the AWS CLI works without --endpoint-url.
