เครื่องมือที่ต้องมี: Python, pip, virtualenv, AWS EB CLI, SSH Client
ติดตั้ง EB CLI: Official Guide
1. สร้าง Virtual Environment
$ virtualenv -p python2.7 /tmp/hello-world
$ source /tmp/hello-world/bin/activate
2. สร้าง requirements.txt
$ pip freeze > requirements.txt
# หรือเขียนเอง
Flask==0.8
Jinja2==2.6
Werkzeug==0.8.3
3. Init EB Application
$ eb init -p python2.7 hello-world
$ eb init # ตั้ง SSH Keypair
4. Create Environment & Deploy
$ eb create hello-env
เอกสารอ้างอิง
หมายเหตุ: บทความนี้เก่า (Python 2.7, EB CLI v3) ปัจจุบันใช้ eb platform list เลือก Platform ใหม่ และ Python 3.8+