Relative Content

Tag Archive for djangopostgresqlsecurityamazon-ecsvpc

How to communicate a postgres db and Django container inside ECS?

I need some guidance with this pipeline to deploy a test to ECS, i know that a postgres db in a container is not the best solutions compared to RDS and others but i would like at least to know if it is possible hehe. Im stuck with this for days, it just get stuck in part of running wait-for-it.sh file and does not connect to db, i checked in AWS cloudwatch and the db is getting ready to accept connections, but Django never connects to it. Im using a default VPC attached to the ECS cluster and have inside it a security group with inbound rules to allow traffic in port 8000 for ay IP and other for 5432 port that allows traffic to any IP too, what is wrong?