-
SAM deploy 중 업로드할 수 없음오류 2023. 2. 4. 15:28
문제 상황
sam deploy 중 에러 발생
에러 코드
sam deploy -g
에러 메시지
Looking for resources needed for deployment:
Managed S3 bucket: aws-sam-cli-managed-default-samclisourcebucket-ypj8ati4oy6m
A different default S3 bucket can be set in samconfig.toml
Saved arguments to config file
Running 'sam deploy' for future deployments will use the parameters saved above.
The above parameters can be changed by modifying samconfig.toml
Learn more about samconfig.toml syntax at
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-config.html
Error: Unable to upload artifact HelloWorldFunction referenced by CodeUri parameter of HelloWorldFunction resource.
S3 Bucket does not exist에러 원인
실습을 한번 했었고 다시 실습을 진행하려 s3 버킷과 "하나의 cloudformation stack" 을 삭제했다
구글링 결과 sam 배포는 두 개의 cloudformation stack이 생성되는 것을 알 수 있었다.
하나는 SAM CLI 리소스를 추적하기 위한 것이고, 다른 하나는 앱의 리소스를 추적하기 위한 것이다
구글링 내용 - 같은 오류 해결 사례
https://github.com/aws/aws-sam-cli/issues/2045
sam deploy --guided errors with "S3 Bucket does not exist" · Issue #2045 · aws/aws-sam-cli
Description Using sam deploy --guided, the process fails with "Error: S3 Bucket does not exist." Steps to reproduce A developer deployed this stack using sam deploy --guided --template-fi...
github.com
해결과정
나머지 cloudformation stack aws-sam-cli-managed-default를 삭제한 후 재배포하여 실행되었다.
'오류' 카테고리의 다른 글
Lambda 이미지 리사이징 중 Access Denied (0) 2023.02.10 SAM build 중 Python3 버전 오류 (0) 2023.02.04 CI/CD 프로젝트 오류 (0) 2023.01.26