├── .gitignore ├── LICENSE ├── README.md ├── app ├── Dockerfile ├── hello_django │ ├── __init__.py │ ├── asgi.py │ ├── middleware.py │ ├── settings.py │ ├── urls.py │ ├── views.py │ └── wsgi.py ├── manage.py └── requirements.txt ├── deploy ├── requirements.txt └── update-ecs.py ├── nginx ├── Dockerfile └── nginx.conf └── terraform ├── 01_provider.tf ├── 02_network.tf ├── 03_securitygroups.tf ├── 04_loadbalancer.tf ├── 05_iam.tf ├── 06_logs.tf ├── 07_ecs.tf ├── 08_auto_scaling.tf ├── 09_rds.tf ├── outputs.tf ├── policies ├── ecs-role.json ├── ecs-service-role-policy.json └── ecs-task-execution-policy.json ├── templates └── django_app.json.tpl └── variables.tf /.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__ 2 | .DS_Store 3 | *.sqlite3 4 | env 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/README.md -------------------------------------------------------------------------------- /app/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/app/Dockerfile -------------------------------------------------------------------------------- /app/hello_django/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/hello_django/asgi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/app/hello_django/asgi.py -------------------------------------------------------------------------------- /app/hello_django/middleware.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/app/hello_django/middleware.py -------------------------------------------------------------------------------- /app/hello_django/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/app/hello_django/settings.py -------------------------------------------------------------------------------- /app/hello_django/urls.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/app/hello_django/urls.py -------------------------------------------------------------------------------- /app/hello_django/views.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/app/hello_django/views.py -------------------------------------------------------------------------------- /app/hello_django/wsgi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/app/hello_django/wsgi.py -------------------------------------------------------------------------------- /app/manage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/app/manage.py -------------------------------------------------------------------------------- /app/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/app/requirements.txt -------------------------------------------------------------------------------- /deploy/requirements.txt: -------------------------------------------------------------------------------- 1 | boto3==1.28.84 2 | click==8.1.7 3 | -------------------------------------------------------------------------------- /deploy/update-ecs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/deploy/update-ecs.py -------------------------------------------------------------------------------- /nginx/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/nginx/Dockerfile -------------------------------------------------------------------------------- /nginx/nginx.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/nginx/nginx.conf -------------------------------------------------------------------------------- /terraform/01_provider.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/terraform/01_provider.tf -------------------------------------------------------------------------------- /terraform/02_network.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/terraform/02_network.tf -------------------------------------------------------------------------------- /terraform/03_securitygroups.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/terraform/03_securitygroups.tf -------------------------------------------------------------------------------- /terraform/04_loadbalancer.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/terraform/04_loadbalancer.tf -------------------------------------------------------------------------------- /terraform/05_iam.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/terraform/05_iam.tf -------------------------------------------------------------------------------- /terraform/06_logs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/terraform/06_logs.tf -------------------------------------------------------------------------------- /terraform/07_ecs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/terraform/07_ecs.tf -------------------------------------------------------------------------------- /terraform/08_auto_scaling.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/terraform/08_auto_scaling.tf -------------------------------------------------------------------------------- /terraform/09_rds.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/terraform/09_rds.tf -------------------------------------------------------------------------------- /terraform/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/terraform/outputs.tf -------------------------------------------------------------------------------- /terraform/policies/ecs-role.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/terraform/policies/ecs-role.json -------------------------------------------------------------------------------- /terraform/policies/ecs-service-role-policy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/terraform/policies/ecs-service-role-policy.json -------------------------------------------------------------------------------- /terraform/policies/ecs-task-execution-policy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/terraform/policies/ecs-task-execution-policy.json -------------------------------------------------------------------------------- /terraform/templates/django_app.json.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/terraform/templates/django_app.json.tpl -------------------------------------------------------------------------------- /terraform/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testdrivenio/django-ecs-terraform/HEAD/terraform/variables.tf --------------------------------------------------------------------------------