I am trying to upload a file from an EC2 instance to S3 bucket and get this error:
[ec2-user@zzzzzzz parsers]$ aws s3 cp file.txt s3://bucket/output/file.txt
upload failed: ./file.txt to s3://bucket/output/file.txt A client error (InvalidAccessKeyId) occurred when calling the PutObject operation: The AWS Access Key Id you provided does not exist in our records.
I have already configured the aws configure file in EC2 as follows:
[ec2-user@zzzzz parsers]$ aws configure list
Name Value Type Location ---- ----- ---- -------- profile <not set> None None access_key ****************NTr6 config-file secret_key ****************AFJQ config-file region us-west-2 config-file ~/.aws/config
What else should I do to make this work?