AWS CLI Usage
· 1 min read · Amrith Vengalath
- AWS
- AWS-CLI
- s3
- Notes
AWS CLI Usage
Initial configuration
Download and install aws cli : AWS CLI Download link
Configuration
mr4dot@machine % aws configure
AWS Access Key ID [****************S4UQ]: <your acces key>
AWS Secret Access Key [****************9BJx]: <your secrete key>
Default region name [None]:
Default output format [None]:
mr4dot@machine PNPT %S3 File Upload (Normal)
mr4dot@machine % aws s3 cp wa1.mp4 s3://cdn.example.com/f/t/wa1.mp4 --acl public-read --storage-class INTELLIGENT_TIERING
out put eg :-
upload: ./<filename> to s3://cdn.example.com/<filename>S3 File Upload Download only mod
mr4dot@machine % aws s3 cp <local file path> s3://cdn.domain.com/<filename> --acl public-read --storage-class INTELLIGENT_TIERING --no-guess-mime-type --content-type="application/octet-stream" --metadata-directive="REPLACE"
out put eg :-
upload: ./<filename> to s3://cdn.example.com/<filename>