Skip to content

Latest commit

 

History

History
49 lines (28 loc) · 661 Bytes

README.md

File metadata and controls

49 lines (28 loc) · 661 Bytes

Jenkins_on_ec2

A jenkins server hosted on amazon ec2

Tech Stack

Infrastructure As Code: Terraform

Configuring Tool: Ansible

Cloud: AWS

Container runtime: Docker

Run Locally

Clone the project

  git clone https://link-to-project

Go to the project directory

  cd my-project

configure aws cli

 # Change my_ip value to your ip address in secrets.tfvar
  cd terraform
  terraform init 
  terraform apply -var-file="secrets.tfvar"
  cd ansible
 # change the inventory with ec2 ip address
  ansible -i inventory playbook.yaml