Create EC2 and PostgreSQL to deploy a Django and PostgreSQL
AWS # Create VPC à Create Subnet. Different subnet in different AZ à Attach route table of each subnet Group Before creating PostgreSQL 1. Create a SG that for postgresql, port 5432 and source sg of ec2. 2. Create a subnet group. Only private subnet added to this group. At lease to private subnet with different AZ . PostgreSQL: DB Instance: examdb DB name: postgres Master user: examdbuser PWD: Ex****db Port: 5432 Endpoint: examdb.czem0muqoe3b.ap-south-1.rds.amazonaws.com EC2 তে PostgreSQL Client Install করুন- Ubuntu sudo apt update sudo apt install postgresql-client -y Step 6: EC2 থেকে Connect Test করুন psql -h examdb.xxxxx.ap-south-1.rds.amazonaws.com \ -U postgresUser \ -d dbname এখন পাসওয়ার্ড চাইবে **press \q to go back ect2 Step 7: Django settings.py এ Configure করুন DATABASES = { 'default': { 'ENGINE': 'dja...