• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

AWS CLI Create Bucket

December 9, 2018

Creating a bucket via the AWS Console takes only a few clicks. If you’re creating a bucket via shell script, you will need to use the AWS CLI (command line interface). So, here’s the script to create a S3 bucket via the AWS CLI within shell. Now the bucket name has to be globally unique similar to a domain name. If someone already has claimed it, you will need to use an alternative name.

aws s3api create-bucket --bucket bucket-name --region us-east-2 create-bucket-configuration LocationConstraint=us-east-2

aws s3api create-bucket --bucket bucket-name --region us-east-2 create-bucket-configuration LocationConstraint=us-east-2

Filed Under: Cloud, Linux Tagged With: aws cli, bucket, create, s3

Search This Website

Subscribe Via Email

  • Home
  • About
  • Archives

Copyright © 2023