How to create an S3 bucket from AWS CLI

Using high level s3 commands:

aws s3 mb s3://bucketname                                     

Using S3 api commands:

aws s3api create-bucket --bucket bucketname --region regionname

See also  How to get current date, day, month, year in Redshift database