.env
and terraform/variables.tf
cd terraform
terraform init .
terraform apply
ec2 ip
and rds endpoint
in terminalterraform output private_key
and copy the rsa key into tia_key.pem
in project root directorycd ..
chmod 400 tia_key.pem
ssh -i tia_key.pem {user_name}@{ec2_ip}
sudo snap install docker
to install docker in ec2docker-compose.yaml
docker-compose build
docker-compose up
docker-compose down
terrafrom destroy