Aws S3 Cli Commands Cheat Sheet



# list all trails aws cloudtrail describe-trails # list all S3 buckets aws s3 ls # create a new trail aws cloudtrail create-subscription -name awslog -s3-new-bucket awslog2016 # list the names of all trails aws cloudtrail describe-trails -output text cut -f 8 # get the status of a trail aws cloudtrail get-trail-status -name awslog.

  1. 👉 To format aws command output into tables, you can pipe output to column -t. # aws ec2 describe-instances jq. I-0f112d652ecf13dac c3.x2large fisher.com i-0b3b5128445a332db t2.nano robinson.com # aws ec2 describe-instances jq. column -t i-0f112d652ecf13dac c3.x2large fisher.com i-0b3b5128445a332db t2.nano robinson.com.
  2. Aws s3 ls: make bucket (mb) aws s3 mb s3://tmpbucket aws s3 mb s3://mybucket -region us-west-1: remove bucket (rb) aws s3 rb s3://tmpbucket aws s3 rb s3://tmpbucket -force ← If there is a object in the bucket, you must use “–force” option. List s3: aws s3 ls s3://tmpbucket/box/ copy to s3: aws s3 cp a.txt s3.
In our last post we have seen how to use EB CLI for managing elastic beanstalk through command line. But, you can also manage elastic beanstalk using traditional AWS CLI. In this post you will find AWS CLI cheat sheet for the same.Aws S3 Cli Commands Cheat Sheet
If you are new to Elastic Beanstalk, it’s recommended that you go through this free AWS Elastic Beanstalk crash course.
Below are the major commands used frequently while managing the elastic beanstalk environment.
To check the availability of a CNAME
To create a new application
Compose Environments
To create a new environment for an application
The following command creates a new environment for version “v1” of a java application named “CldVdsApp”:
CheatTo specify a JSON file to define environment configuration options
The following create-environment command specifies that a JSON file with the name myoptions.jsonshould be used to override values obtained from the solution stack or the configuration template:
To create a storage location
The following command creates a storage location in Amazon S3:

Aws Cli S3 Commands

To abort a deployment
To delete an application

Aws S3 Cli Commands Cheat Sheet Download

The following command deletes an application named CldVdsApp:

Aws S3 Cli Commands Cheat Sheet Pdf


You can refer the complete set of AWS CLI for elastic beanstalk on this link.

Aws Cli S3 List


Aws S3 Cli Commands Cheat Sheet 2020

Note:- All the above commands are taken from different AWS CLI reference guides and put in one place over here. Please run the commands after due diligence as we won’t be responsible for any mistakes in executing the commands and it’s consequences. If you have any concern or query feel free to contact us or comment below.