AWS S3 Image not loading Php application

My website reads images from AWS S3 and images are not loading in my website
The error message as below
InvalidAccessKeyId
The AWS Access Key Id you provided does not exist in our records.
AKIAQ653526HMZJ7F2VF
JENYSSQ3ZDBE3C0E
+9bTXhKVc2xldHGG46E/Qpwlb9YZjojhMkKayHe9V+ZUSGQSEn6YgoccQgmt3W
/rl80jkI4uEpE=

As the access key id not matched i checked in IAM as there is no access key i created a new access key and attached an IAM policy and created a bucket polciy in my S3 bucket.

Still the issue is not resolved How to configure the access key in my php code

Is your PHP application also running in AWS? If it is, then you should not be using access keys as this is insecure. You should configure a role and instance profile on the server that grants the required access to the bucket. Then you do not need credentials when creating the S3 client in the PHP app.