Create a solution that will run nginx across multiple regions in the daytime it should have 2 servers and night time it should be 1, automate with Terraform.
I have work on terraform up to create an Infrastructure. It is an interview question plz reply me…
Hi @umesht0001
You would have to:
- Create infrastructure using
terraform
with your cloud provider - Use a scale rule to keep 2 servers in the daytime and only 1 at night
- Use
ansible
(or other config tool) to prepare the O.S., install nginx and configure it
There isn’t a single solution that we could post here. You need to have knowledge of each one. Check some posts here:
Thanks,
KodeKloud Support