We have creating a to-do list app using Next.js and TypeScript
For frontend docker image click here
Before following the setups, first configure the aws-cli, and install terraform in your from here
Now, follow the steps below to replicate the infrastructure:
-
Go to the
iac/terraform/serverdirectory:cd iac/terraform/server -
Initialize the backend for terraform(use latest version):
terraform init
-
To check for the resources being created:
terraform plan
-
Finally, apply the changes and the infrastructure mentioned in the
main.tffile:terraform apply
Before following the setups, first install ansible in your local system, from here
Now, follow the steps below to manage the latest configurations:
-
Go to the
iac/ansibledirectory:cd iac/anisble -
Manage the configuration by this simple command:
ansible-playbook -i hosts.ini to-do.yaml
ssh -i "my-ssh-key.pem" ubuntu@ec2-3-109-19-12.ap-south-1.compute.amazonaws.com