Mbaoma / AWS-S3bucket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS-S3bucket

This repo highlights how to create an AWS S3 bucket, using the CLI. Naming Nomenclature can be found here

  • Install the AWS CLI on your machine
$ sudo apt udpate
$ sudo apt install awscli
  • Configure your AWS Access keys and Secret Access Key on your machine
$ aws configure
  • Create a bucket with a unique name
$ aws mb s3://bucketname --region your-region
  • To enforce an owner on the bucket, add the following code to the above command
--object-ownership BucketOwnerEnforced
  • To list items in the bucket, run the following:
$ aws s3 ls <bucket-url>

Example

$ aws s3 mb s3://may4u --region us-east-1

Output

$ make_bucket: may4u

image

  • To delete the bucket,
$ aws s3 rb s3://bucket-name --force  

About