@isamalatby What you need is likely to prefix "AWS4" to your secret access key - "AWS4<SECRET ASCCESS KEY>". Additionally, your url must be of the format "<API URL>/<BUCKET NAME>".
https://github.com/m5stack/M5_Camera_Examples/blob/main/idf/AWS-S3-PUT/main/AWS-S3-PUT.c#L59
Good luck.