# 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.
- Aws Cli S3 Commands
- Aws S3 Cli Commands Cheat Sheet Download
- Aws S3 Cli Commands Cheat Sheet Pdf
- Aws Cli S3 List
- Aws S3 Cli Commands Cheat Sheet 2020
- 👉 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.
- 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.
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”:
To 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 deploymentTo 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.