make_bucket failed: s3://lightsail-back-test An error occurred (AccessDenied) when calling the Creat eBucket operation: Access Denied

1

make_bucket failed: s3://lightsail-back-test An error occurred (AccessDenied) when calling the Creat eBucket operation: Access Denied

Moving website backup into s3 bucket. Lightsail comsole. Please tell me stpe by step.process it move it. I am not tech guy please guide me with which command and where to run it.

Raj
asked 4 months ago183 views
2 Answers
0

Hello,

The error message "Access Denied" when calling the CreateBucket operation in AWS S3 typically indicates that the IAM user or role used to perform the operation does not have the required permissions to create an S3 bucket. To resolve this issue, you should review and adjust the IAM policy associated with the user or role. Ensure that it includes the necessary permissions for creating S3 buckets. Also, take a look at the links below - https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-connecting-wordpress-to-amazon-s3.html https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-uploading-files-to-a-bucket If u need more help plz feel free to comment Thanks

answered 4 months ago
profile picture
EXPERT
reviewed a month ago
  • I have created user in IAM but i still getting the same error. Can you please tell me what should i follow exactly to resovle this? I have went through many tutoorials and nothing is working in my case.

0

To move your website backup from Lightsail to an S3 bucket, follow these steps:

Ensure the IAM user or role you are using has the necessary permissions to access the S3 bucket. Specifically, it needs the s3:PutObject and s3:GetObject permissions.

Copy the files you want to backup from your Lightsail instance to your local machine using scp or sftp . For example:

scp -i "key-pair-file.pem" username@lightsail-instance-ip:/path/to/file local/destination/path

Install and configure the AWS CLI on your local machine if not already done.

Authenticate to your AWS account using the AWS CLI and ensure you are using the IAM user/role with necessary S3 permissions.

Upload the files from your local machine to the S3 bucket using the AWS CLI s3 commands. For example:

aws s3 cp local/file s3://bucket-name/file 

Here is a past post https://repost.aws/knowledge-center/s3-access-denied-bucket-policy

profile picture
EXPERT
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions