Skip to main content

Upload to S3 via CLI

Install S3 Client

Windows

Open Command Prompt and run the following command to intall the AWS CLI.

msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi

Macos

Open terminal and run the following command to intall the AWS CLI.

pip3 install aws-cli

Configure AWS CLI

  1. Run aws –version to check if the CLI was installed properly.
  2. Now run aws configure. Enter the Access Key ID, Secret Access Key, Default Region Name and Default Output Format.

Copying local Files to S3

Run the following command to copy local files to S3

aws s3 cp <local path> <s3Uri> --recursive