By using this site, you agree to the Privacy Policy.
Accept
EnterinITEnterinITEnterinIT
  • HOME
  • IT PRO
  • TECH
  • MICROSOFT
    • Azure
    • ConfigMgr/SCCM
    • DPM
    • Orchestrator
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Office 365
    • Office Insider
    • Power BI
    • Skype
    • SQL Server
    • Teams
  • WINDOWS
    • Windows Admin Center
    • Windows Client
    • Windows Server
  • SCCM Query Collection List
Reading: How to Sync AWS S3 Files using AWS CLI: Step-by-Step Guide
Font ResizerAa
EnterinITEnterinIT
Font ResizerAa
  • HOME
  • IT PRO
  • TECH
  • MICROSOFT
  • WINDOWS
  • SCCM Query Collection List
Search
  • HOME
  • IT PRO
  • TECH
  • MICROSOFT
    • Azure
    • ConfigMgr/SCCM
    • DPM
    • Orchestrator
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Office 365
    • Office Insider
    • Power BI
    • Skype
    • SQL Server
    • Teams
  • WINDOWS
    • Windows Admin Center
    • Windows Client
    • Windows Server
  • SCCM Query Collection List
AWS

How to Sync AWS S3 Files using AWS CLI: Step-by-Step Guide

Published February 18, 2024
4 Min Read
SHARE

How to Sync AWS S3 Files using AWS CLI: Step-by-Step Guide.

Contents
Solution1. Install the AWS CLI2. Get your access keys3. Configure AWS CLI4. Use AWS CLI!

How it to do manually:

1. Log into the AWS console, navigate to S3 Service;

2. Find the right bucket, find the right folder;

3. Open the first file, click download;

4. Go back, and open the next file, over and over again.

With AWS CLI, that entire process took less:

aws s3 sync s3://<bucket>/<path> </local/path>

Solution

1. Install the AWS CLI

Download AWS Client (I`m using v1) here.

NOTE: You can also download it and use it on macOS or Linux systems.

2. Get your access keys

Before using AWS Client we must obtain access keys (this is need for feature client configuration)

1. Log into the IAM Console;

2. Go to Users.;

3. Click on your user name;

4. Go to the Security credentials tab;

5. Click Create access key (you can create only two keys for one user account);

6. You’ll see your Access key ID. Click Show to see your Secret access key.

NOTE: Amazon will show this secret access key only once. If you lost it – you must obtain a new key.

3. Configure AWS CLI

1. Run aws configure and answer the prompts.

2. On the first run of aws configure you will just see [None];

3. In the future you can change any of these values by running aws cli again;

4. The prompts will look like AWS Access Key ID [****************ABCD], and you will be able to keep the configured value by hitting return.

$ aws configure
AWS Access Key ID [None]: <enter the access key you just created>
AWS Secret Access Key [None]: <enter the secret access key you just created>
Default region name [None]: <enter region - valid options are listed below >
Default output format [None]: <format - valid options are listed below >
  • Valid region names (documented here) are RegionName:
    • ap-northeast-1 [Asia Pacific (Tokyo)]
    • ap-northeast-2 [Asia Pacific (Seoul)]
    • ap-south-1 Asia [Pacific (Mumbai)]
    • ap-southeast-1 [Asia Pacific (Singapore)]
    • ap-southeast-2 [Asia Pacific (Sydney)]
    • ca-central-1 [Canada (Central)]
    • eu-central-1 [EU Central (Frankfurt)]
    • eu-west-1 [EU West (Ireland)]
    • eu-west-2 [EU West (London)]
    • sa-east-1 [South America (Sao Paulo)]
    • us-east-1 [US East (Virginia)]
    • us-east-2 [US East (Ohio)]
    • us-west-1 [US West (N. California)]
    • us-west-2 [US West (Oregon)]
  • Valid output formats are
    • json
    • table
    • text

4. Use AWS CLI!

Command sync recursively copies new and updated files from the source directory to the destination. Only creates folders in the destination if they contain one or more files. At this moment we able to download an entire collection of images with a simple

aws s3 sync s3://cdn.enterinit.com/photos/ ~/d:\AWS
TAGGED:AWSCommand Prompt (CMD)S3WindowsWindows 10
Previous Article Microsoft Teams gets Walkie Talkie, SMS sign-in and more new features
Next Article Microsoft Teams Roundup January 2020
Leave a Comment Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Translation

English中文(简体)DanskNederlandsFrançaisDeutschItaliano한국어PolskiPortuguêsRomânăEspañolУкраїнська
by Transposh - translation plugin for wordpress

Popular Posts

System Requirements for Windows Server 2016
Windows Server
Configuration Manager Query Collection List
Configuration Manager Query Collection List
ConfigMgr
Structured/Managed Navigation enabled on Modern Pages in Classic Team Sites
Tech
SCCM Failed to get DP locations as the expected version from MP
ConfigMgr

Recent Posts

Installing and Configuring Fail2ban for SSH Protection on Ubuntu 24.04
Linux
Enabling and Configuring FirewallD on AlmaLinux
Linux
User Creation and SSH Key Setup in AlmaLinux
Linux
How to reset password on AlmaLinux
Linux

© 2023 EnterinIT

Go to mobile version
adbanner
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?