An error occurred (AccessDenied) when calling the CreateBucket operation: Access Denied

0 votes

Hi Guys,

I am trying to create an S3 bucket in AWS. But it is showing me the below error.

$ aws s3api create-bucket --bucket bucketname --region us-east-1
An error occurred (InvalidBucketName) when calling the CreateBucket operation: The specified bucket is not valid.
Oct 7 in AWS by akhtar
• 33,720 points
93 views

1 answer to this question.

0 votes

Hi@akhtar,

You are getting this error because your IAM user doesn't have permission to create an S3 bucket. You need to create an IAM user with an S3 bucket policy.

answered Oct 7 by MD
• 79,930 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer
+1 vote
2 answers