Giter VIP home page Giter VIP logo

jenkins-terraform's Introduction

Deploy Jenkins Using Terraform

Deploy a Kubernetes Cluster under 5 mins!

Resources Created by this Template

  • Jenkins Server [EC2 Instance]
  • Jenkins Security Group [Security Group]

Template Flow

  1. User defines the type of Environment this server will be installed in.
  2. Terraform creates 1 Secuirty Group by dynamically attaching it to the default VPC details.
  3. Terraform will search for the latest AWS AMZN AMI.
  4. Terraform will create the EC2 Instance.

Environment Options

Based on the environment users enter, the type of instance will be launched. dev = "t2.micro" test = "t2.medium" prod = "t2.large"

Outputs

  1. Instance IP
  2. AMZN AMI
  3. Jenkins Admin Password

Management

All resources are built and tested using Terraform, and stored in Github.

How to use?

Pre-requisites

  • AWS Account
  • Basic AWS Knowledge
  • Familiar with Terraform

How to Install this template

Download this repo to your local machine or clone the repo.

Run the following commands in your terminal

terraform init
terraform fmt
terraform validate
terraform plan
terraform apply

Jenkins setup

After the terraform process has been completed. The Terraform command will provide the IP of the Server, copy that and paste it on your browser. Copy the Admin Password from the Terraform outputs and paste it on the Jenkins browser. And you are all set!

AWS

  1. Go to AWS, and search for EC2
  2. In EC2 Instances, you will see a new Instance was created named "Jenkins Server".
  3. You can also check out the Security Group by going to the Security Group page.

jenkins-terraform's People

Contributors

naz513 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.