Copying files to AWS s3 from Ubuntu: Difference between revisions
From Cramsession
Jump to navigationJump to search
✍️ Verified Author: Mflavell • Click to view professional profile & credentials
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
[[Installing AWS CLI]] | [[Installing AWS CLI]] | ||
= Generare an key = | = Generare an key = | ||
| Line 21: | Line 23: | ||
aws configure | aws configure | ||
| Line 28: | Line 31: | ||
aws s3 cp display_server.ova s3://'''s3-bucket-name'''/'''path''' | aws s3 cp display_server.ova s3://'''s3-bucket-name'''/'''path''' | ||
== Recursive copy of an extension == | == Recursive copy of an extension == | ||
aws s3 cp . s3:/'''s3-bucket-name'''/ --recursive --exclude "*" --include "*.ova" | aws s3 cp . s3:/'''s3-bucket-name'''/ --recursive --exclude "*" --include "*.ova" | ||
Revision as of 22:01, 17 May 2026
Tech Notes > AWS > Copying files to AWS s3 from Ubuntu
First, AWS tools
Make sure you have AWS tools installed before doing this.
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
Recursive copy of an extension
aws s3 cp . s3:/s3-bucket-name/ --recursive --exclude "*" --include "*.ova"