• 카테고리

    질문 & 답변
  • 세부 분야

    데브옵스 · 인프라

  • 해결 여부

    미해결

elasticbeanstalk docker로 배포하려고합니다.

23.02.14 22:30 작성 23.02.15 08:35 수정 조회수 568

1

cli 명령을 이용해서 하려합니다.

docker, django, python==3.9버전이라서 eb가 3.8까지만 지원해서 docker를 쓸 수 밖에 없더라고요.

 

그래서 위와같이 구성해서 배포하려니까 자꾸 에러가 나는데, 에러 확인이 잘 안됩니다.

Command failed on instance. Return code: 1 Output: Engine execution has encountered an error..

2023-02-14 13:13:25    INFO    Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
2023-02-14 13:14:28    ERROR   Create environment operation is complete, but with errors. For more information, see troubleshooting documentation.

ERROR: ServiceError - Create environment operation is complete, but with errors. For more information, see troubleshooting documentation.

이렇게만 나와서요.

대부분 elastic beanstalk를 docker를 이용해서 하실텐데

이를 배포하는 방법 좀 알려주세요 ㅠㅠ

디렉토리에는 .elasticbeanstalk에 eb 설정을

Dockerfile, Dockerun.aws.json 파일도 만들었습니다

스크린샷 2023-02-14 오후 10.28.52.png

 

 


해결)
계속해서 에러가 났던 이유가
git add commit을 안하고 eb deploy만 해서 코드 변경사항이 적용 안되고 있었네요 ㅋㅋㅋ;;

답변 1

답변을 작성해보세요.

1

안녕하세요.

아이구^^ 그럼 git add commit push하신 후 해결 잘 되신거에요? 빠르게 개발하라보면 가끔 그럴때가 생기더라구요. 코드는 deploy안됐는데 왜 변경된 코드가 안돌아가는지 불평할때^^;;