The issue is that the webserver, httpd, was not able to communicate with outside networks. That's why I could use the aws cli and telnet/ ping from the command line, but it was unreachable from the browser.
After running the command
setsebool -P httpd_can_network_connect 1, I was able to connect to my s3 buckets.
Unable to connect to EC2 instance in private Subnetasked 2 years ago
Unable to connect to ec2 this morningasked 3 years ago
Unable to access my Website on EC2asked 22 days ago
Unable to connect to EC2 Instance through Puttyasked 3 years ago
S3 bucket access on EC2 Instance using boto3Accepted Answerasked 5 months ago
I am trying to connect to my ec2 instance but instead its loading endlesslyasked 2 months ago
I can't connect to my EC2 instance.asked 5 months ago
Unable to connect to EC2 instance via aws websiteAccepted Answerasked 3 months ago
Unable to connect to S3 from EC2 - PHP SDKasked a year ago
I can't find my EC2 instance in my dashboardasked 4 months ago