I have been using EC2 windows instance and installed AWS CLI in it, I have created IAM user with CLI access credential and with full s3 access permission and I had install AWS CLI in my personal system. Now the problem is that I can access the s3 bucket using CLI credential in my system but not in EC2 instance CLI.
Here I provide the error I got
An error occurred (AuthorizationHeaderMalformed) when calling the ListBuckets operation: The authorization header is malformed; the authorization header requires three components: Credential, SignedHeaders, and Signature.