I have a batch file C:\\upload_to_s3.bat. In this file, there is a line:
aws s3 sync D:\\S3\\batch1\\ s3://MyBucket/batch1 --exclude *.bat
I have Windows tas
Include the following lines in your batch file:
set AWS_ACCESS_KEY_ID=your_access_key_id
set AWS_SECRET_ACCESS_KEY=your_secret_access_key
AWS Documentation