AWS로 첫 번째 단계를 수행하고 AWS CLI를 사용하여 EC2 서버에서 S3 서버로 파일을 복사하려고합니다. > 속성과AWS CLI 'cp'가 "지정된 버킷이 존재하지 않습니다"와 함께 실패합니다.
인 '엔드 포인트'값을 copeied - 버킷을 선택, 내 S3 대시 보드에 갔다 -다음과 같이
A client error (NoSuchBucket) occurred when calling the PutObject operation: The specified bucket does not exist
내 명령은 다음과 같습니다
나는 오류가 발생[bucket name].s3-website-us-west-2.amazonaws.com
- 그런 다음
하지만 이전에 설명한 오류로 실패했습니다. 버킷이 없습니다.
p.s. 러닝
aws s3api list-buckets --query 'Buckets[].Name'
버킷이 존재하므로 내 이해에 문제가되지 않습니다.
편집 나는 모든 온라인 예에 정확히
upload failed: ./file.ext to s3://[bucket name]/file.ext A client error (PermanentRedirect) occurred when calling the PutObject operation: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint: [bucket name].s3.amazonaws.com You can fix this issue by explicitly providing the correct region location using the --region argument, the AWS_DEFAULT_REGION environment variable, or the region variable in the AWS CLI configuration file. You can get the bucket's location by running "aws s3api get-bucket-location --bucket BUCKET".
양동이의 이름은 무엇입니까? – error2007s
버킷 이름을 bucket_name이라고 부르 자. x100의 형태로 요청한 경우 모두 소문자입니다. – AYBABTU
후행 슬래시 조심 – grepe