Copying files to AWS s3 from Ubuntu

From Cramsession
Jump to navigationJump to search
✍️ Verified Author: MflavellClick to view professional profile & credentials

Tech Notes > AWS > Copying files to AWS s3 from Ubuntu


First, AWS tools

Make sure you have AWS tools installed before doing this.

Installing AWS CLI


Generare an key

  • Login to the AWS IAM console.
  • Select the the user for the app key
  • Select Access keys'
  • Select Create Access key
  • In ubuntu run
aws configure


Copy Commands

Copy a single file

aws s3 cp display_server.ova s3://s3-bucket-name/path


Copy a folder

aws s3 sync . s3://YOURBUCKET/


Recursive copy of an extension

aws s3 cp . s3:/s3-bucket-name/ --recursive --exclude "*" --include "*.ova"