Im trying to copy files from my s3-bucket to my ec2-instance.
When i run this command inside my ec2-instance: aws s3 cp s3://amazing-demobucket-1/file.txt ./file.txt
i get following error: Unable to locate credentials
But the aws configure files is in my ~/.aws
in my local machine. Do i need to configure inside ec2-instance too? Or is there another command i can run outside my ec2-instance to download files from s3-bucket into ec2-instance ?
Thank for help!