Check out example codes for "The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256". It will help you in understanding the concepts better.

Code Example 1

django 
AWS_S3_REGION_NAME = "eu-west-2" # your region
AWS_S3_SIGNATURE_VERSION = "s3v4"

Learn ReactJs, React Native from akashmittal.com