Facing an issue while configuring AWS CLI - Make bucket failed error..

0

Facing an issue while configuring AWS CLI (command prompt) - Make bucket failed error.. It says > make_bucket failed: s3://testbucket000003344bgnnntrnmsbc An error occurred (AccessDenied) when calling the CreateBucket operation: Access Denied

Please how can i resolve this??

Peace
질문됨 9달 전286회 조회
2개 답변
0

At the CLI, issue this command:

aws sts get-caller-identity

Then make sure that principal has a policy that allow the s3:CreateBucket operation.

You can use the IAM Policy Simulator to test also.

profile pictureAWS
전문가
kentrad
답변함 9달 전
profile pictureAWS
전문가
검토됨 9달 전
0

This AccessDenied error when calling CreateBucket typically means your AWS IAM user or role does not have the right permissions to create an S3 bucket. Here are some things to check:

  • Make sure the IAM entity you are using has the "s3:CreateBucket" permission added to its policy. This allows creating new S3 buckets.
  • Check the region - you can only create buckets in regions where you have permissions. Make sure the region for the CreateBucket call matches a region allowed in your IAM policy. *Make sure there are no Organization SCPs (Service Control Policies) that deny the s3:CreateBucket permission.

Some things to try:

  • Create a new IAM user with full S3 permissions and test with that user.
  • Check SCPs and bucket policies that may override the IAM permissions.

Adding the right IAM permissions or removing restrictive bucket policies/SCPs should resolve the AccessDenied error for CreateBucket.

AWS
답변함 9달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠