Skip to content

Vaibhav-Rawat03/Applied_DevOps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Applied DevOps Project : Next Task

We have creating a to-do list app using Next.js and TypeScript

For frontend docker image click here

Setup for IaC

Infrastructure Provisioning

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:

  1. Go to the iac/terraform/server directory:

    cd iac/terraform/server
  2. Initialize the backend for terraform(use latest version):

    terraform init
  3. To check for the resources being created:

    terraform plan
  4. Finally, apply the changes and the infrastructure mentioned in the main.tf file:

    terraform apply

Configuration Management

Before following the setups, first install ansible in your local system, from here

Now, follow the steps below to manage the latest configurations:

  1. Go to the iac/ansible directory:

    cd iac/anisble
  2. Manage the configuration by this simple command:

    ansible-playbook -i hosts.ini to-do.yaml

We can SSH into the instance, to check for the configurations:

ssh -i "my-ssh-key.pem" ubuntu@ec2-3-109-19-12.ap-south-1.compute.amazonaws.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors