Basic operations using Amazon S3 via AWS-CLI

Everton Araújo
3 min readAug 21, 2020

--

Today begins the series on how to make sysadmin by teaching how to use AWS services via CLI. If you haven’t installed it, see how to install it on my other store.
Now we are going to raise the level.

Aws-cli logo

To consult the help type

$ aws s3 help

List all buckets

Create Bucket

Result

Remove Bucket — $aws s3 rb s3://palmeiras-nao-tem-mundial

Guys, I just created buckets with the name of soccer teams from Brazil and the world to give a very simple example and with good humor. I did nothing to offend anyone. Already a message for the fans of Palmeiras. And I took advantage of that UCL final week to use as an example.

To send the file to the bucket we will create text files to send.

Create files using echo.

create new files

Create new Bucket

Create new reposity

Copy psg.txt to S3 Bucket

Copy psg files and transfer to s3 bucket

Create bayern files bellow….. and doing the same way with the psg files.

Create bayern directories
Upload bayer files to S3

View files created in S3 from your S3 Management Console

S3 in AWS Console

I wish the best to anyone who wins the UCL. And great weekend for everyone.

--

--

Everton Araújo
Everton Araújo

No responses yet