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
preguntada hace 5 meses197 visualizaciones
2 Respuestas
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

respondido hace 5 meses
profile picture
EXPERTO
revisado hace 2 meses
  • 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
EXPERTO
respondido hace 2 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas