Cloud Infra Architecture (AWS)/AWS Build
AWS An error occurred (InvalidParameter) when calling the ImportSnapshot operation: The specified parameter must be an S3 bucket.
seongduck
2025. 2. 11. 17:52
An error occurred (InvalidParameter) when calling the ImportSnapshot operation: The specified parameter must be an S3 bucket.
해당 장애는 import-snapshot을 하거나, S3 Bucket 관련 명령어를 칠 때, S3Bucket 명이나 S3Key를 잘못 입력했을 때 발생합니다.
해결방안
연관된 Json 혹은 사용할 파일을 수정합니다.
vi 본인이 연관된, 혹은 사용할 파일명 혹은 json.json
{
"Description": "My Raw OS",
"Format": "RAW",
"UserBucket": {
"S3Bucket": "S3_버킷명",
"S3Key": "S3_버킷명내에_있는_폴더명/작업할_raw_형식_이미지파일_이름.raw"
}
}
- S3Bucket에는 본인의 S3 Bucket을 명확히 입력해야 합니다.
- S3Key에는 위에 작성한 S3Bucket 안에 있는 폴더명이여야 합니다.
- 실행할 raw 형태의 파일 명이 맞는지, 실제로 존재하는지 확인해야 합니다.
다시 작업해보면 정상적으로 됩니다.
aws ec2 import-snapshot --description "Test" --disk-container file://생성한_json명.json