Amrith Vengalath

AWS CLI Usage

· mr4dot

AWS CLI Usage

Initial configuration

Download and install aws cli : AWS CLI Download link

Configuration

[email protected] % 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]:
[email protected] PNPT %

S3 File Upload (Normal)

[email protected] % 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

[email protected] % 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>