사용자 도구

사이트 도구


aws:elasticbeanstalk

문서의 이전 판입니다!


AWS ElasticBeansTalk EBT

Custom Platform

Java Process

  • Log 파일 경로는 process이름-1.log, process이름-1.error.log : Standard output and error streams from processes started with a Procfile are captured in log files named after the process and stored in /var/log. For example, the web process in the preceding example generates logs named web-1.log and web-1.error.log for stdout and stderr, respectively.

조건적 명령 실행

commands:
  01_create_dir:
    test: test ! -d "${DIR}"
    command: mkdir "${DIR}"
    
# 아래와 같은 식도 가능
    test: "[ -x /usr/bin/python ]" # 파이썬이 존재하면 실행

leader_only

  • 특정 EBT 환경에 설정한 특정 단일 인스턴스에서만 명령 실행
  • test:와 함께 사용 불가
container_commands:
  collectstatic:
    command: "django-admin.py collectstatic --noinput"
  01syncdb:
    command: "django-admin.py syncdb --noinput"
    leader_only: true

참고

aws/elasticbeanstalk.1547100351.txt.gz · 마지막으로 수정됨: 2019/01/10 15:05 저자 kwon37xi