본문 바로가기
CLOUD/AWS

aws deploy create-deployment 에러 - The AppSpec file cannot be located in the specified S3 bucket...

by Rainbound-IT 2023. 6. 9.
반응형

 

 

aws cli로 aws deploy create-deployment 를 하는데 위같은 에러가 발생

https://docs.aws.amazon.com/cli/latest/reference/deploy/create-deployment.html

 

create-deployment — AWS CLI 1.27.149 Command Reference

Note: You are viewing the documentation for an older major version of the AWS CLI (version 1). AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. F

docs.aws.amazon.com

 

aws deploy create-deployment \
    --application-name WordPress_App \
    --deployment-config-name CodeDeployDefault.OneAtATime \
    --deployment-group-name WordPress_DG \
    --description "My demo deployment" \
    --s3-location bucket=CodeDeployDemoBucket,bundleType=zip,eTag=dd56cfdEXAMPLE8e768f9d77fEXAMPLE,key=WordPressApp.zip

 

 

문서보고 s3 경로는 정확하게 입력하였다고 생각했으나...

 

json 파일에서 넣는것과 달리 --s3-location에 버킷 이름만! 넣어야한다.

s3://bucket-name/folder/ 이런식이 아닌 순수하게 bucket-name 만 입력해야만 된다.

나머지 경로는 key에 입력하면 된다.

 

 

 

반응형

댓글