My AWS Cloud Infrastructure

Install Terraform

  • Install tfenv
brew install tfenv
  • Install terraform
tfenv install 1.8.3

Run Terraform Code

  • Run commands to apply changes to the terraform configurations
terraform init
terraform apply

Connect To Database

  • Setup docker environment to install PostgreSQL Client
docker build -t ws -f PostgreSQL.Dockerfile  
docker run -it ws
  • Run command to connect to PostgreSQL Database
psql --host={db_instance_endpoint} --port={port} --username={username} --password --dbname={database_name}