목차

AWS ElasticBeansTalk EBT

Custom Platform

Java Process

ebextensions

특정 패키지 설치

packages: 
  yum:
    libmemcached: [] 
    ruby-devel: []
    gcc: []
  rpm:
    epel: http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
  rubygems: 
    chef: '0.10.2'

조건적 명령 실행

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

leader_only

container_commands:
  collectstatic:
    command: "django-admin.py collectstatic --noinput"
  01syncdb:
    command: "django-admin.py syncdb --noinput"
    leader_only: true

참고