Which of the following is the correct syntax to create an S3 bucket named 'mybucket' in AWS CLI?
easy📝 Syntax Q3 of 15
AWS - CLI
Which of the following is the correct syntax to create an S3 bucket named 'mybucket' in AWS CLI?
Aaws s3 create-bucket mybucket
Baws s3 mb s3://mybucket
Caws s3api create-bucket --bucket mybucket
Daws s3 new-bucket --name mybucket
Step-by-Step Solution
Solution:
Step 1: Recall correct S3 bucket creation syntax
The AWS CLI command to make a bucket is 'aws s3 mb s3://bucketname'.
Step 2: Check other options for syntax errors
Options A and D use incorrect commands. aws s3api create-bucket --bucket mybucket (aws s3api create-bucket --bucket mybucket) is close but often incomplete without region or location constraint.