Run: git clone https://github.com/dispact/terraform-jenkins.git
Create a file called secrets.tfvars and populate it with: my_ip="0.0.0.0"
with 0.0.0.0 being your IP address
ssh-keygen -t rsa -b 4096 -m pem -f tutorial_kp && mv tutorial_kp.pub modules/compute/tutorial_kp.pub && mv tutorial_kp tutorial_kp.pem && chmod 400 tutorial_kp.pem
- Initialize terrafom:
terraform init
- Run:
terraform apply -var-file="secrets.tfvars"
- When prompted, enter:
yes
ssh -i tutorial_kp.pem ubuntu@$(terraform output -raw jenkins_public_ip)
terraform destroy -var-file="secrets.tfvars"