This repository contains the infrastructure code to deploy a Jenkins server inside a Virtual Private Cloud (VPC) using Terraform. Jenkins is hosted on an EC2 instance behind a load balancer for access, with all traffic routed through the load balancer. Security groups ensure restricted access, and an IAM role allows Jenkins to interact with other AWS services if necessary.
git clone https://github.com/your-username/jenkins-terraform-deployment.git
cd jenkins-terraform-deployment
Initialize Terraform:
terraform init
Review the infrastructure plan:
terraform plan
Apply the configuration to create the infrastructure:
terraform apply
When you're done, you can clean up the resources:
terraform destroy
Basic infra inspired by https://github.com/rahulwagh