This operates assuming the ssh key "River" is being used and that a project named "4640_labs" was created.
- This assumes the key is called River and can either be found in the .ssh or in the current directory.
- The project name can be set under "data.tf" line 10 changing it from "name = "4640_labs"" to "name = "
- go to line 5 of "data.tf" change "name = "River"" to "name = "
.env file creation should contain the following if you want to use environment variables to store the do_token
- the .env file should contain the following: export TF_VAR_do_token=
- use the command "source .env" to add the variable to the environment
- Make a terraform.tfvars and enter the following optional values if you would like to make changes: Example: do_token="" region="" droplet_count=""
This should create and run 2 droplets tagged "web-server" within the same VPC running rocky linux.
- run terraform init
- run terraform apply once all the above is completed
- It will ask for an API key from digital ocean if you haven't sourced the .env or set terraform.tfvars
- Once entered it will create the web servers, load balancer, postgres database cluster, and their accompanying firewalls.
Resources created when project created.

Image demonstrating was able to connect to database without database firewall

Images demonstrating successful connection to web servers from bastion
Also shows the Firewall settings and the private IP having been assigned automatically.
Database enabled using tags as it doesn't have an option for IP and only allows hostname attribute retrieval








