1. Syncing the two is actually very simple. First you must install the AWS CLI(Command Line interface). You can download the CIL installer file for windows here: https://d1vvhvl2y92vvt.cloudfront.net/AWSCLIV2.msi. Run the .exe file and follow the instructions onscreen. To confirm installation, in the Windows command prompt, type the following commands:
C:\>
aws2 --version
Output: aws-cli/2.0.0dev0 Python/3.7.3 Windows/10 botocore/2.0.0dev0
2. Once you have the CLI installed, then you must authenticate your AWS account so the CLI knows what account it is working with. To do this you must first create a secret key under your user profile in IAM in your AWS account. Once you have the secret key Id and the key itself, open your command prompt and type the following commands:
[profile adminuser]
aws_access_key_id = adminuser access key ID
aws_secret_access_key = adminuser secret access key
region = aws-region
3. Verify correct configuration by typing the command:
aws help
4. Now that everything is configured correctly, all we need to do is sync our desired folder with the s3 bucket. From your windows command prompt, type the following command:
aws s3 sync C:\Users\[Username]\folder-name s3://[bucket-name]/folder-name
5. Now your folder and the s3 bucket should be synced.