AWS beanstalk 에서 eb deploy 방식

기본적으로 eb deploy를 하는 경우 git 마지막 커밋 기준으로 git archive 커맨드를 통해 eb에 업로드를 하게 됩니다.
node의 경우 eb 환경에서 npm install도 자동으로 실행됩니다. (링크)

다만 .ebignore 파일을 사용하기 시작하는 경우 git과 상관없이 현재 로컬 디렉토리가 올라가게 됩니다.

아래 원문이 있으니 참고하세요.

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-deploy.html

Deploys the application source bundle from the initialized project directory to the running application.

If git is installed, EB CLI uses the git archive command to create a .zip file from the contents of the most recent git commit command.

However, when .ebignore is present in your project directory, the EB CLI doesn’t use git commands and semantics to create your source bundle. This means that EB CLI ignores files specified in .ebignore, and includes all other files. In particular, it includes uncommitted source files.

Note

You can configure the EB CLI to deploy an artifact from your build process instead of creating a ZIP file of your project folder. See Deploying an Artifact Instead of the Project Folder for details.

1개의 좋아요

이 사실을 덕분에 처음 알았네요 :+1:

1개의 좋아요