GithubHelp home page GithubHelp logo

terraform-jenkins's Introduction

terraform-jekins

This project will provide a simples installation of jenkins ina EC2 machine. After this you will have a empty jenkins to configurate your projects. This project uses the deafult VPC provide by AWS.

Prerequisites

Create your account in AWS and user(IAM) and get the secret and token keys

IAM Credentials

Also get your VPC ID in this link and alter this line vpc_id = "vpc-ceb4a8a6" on main.tf in aws_security_group resource

Install terraform

TERRAFORM

Configure AWS CLI

INSTALL CONFIGURE

aws configure AWS Access Key ID [None]: <YOUT_SECRET> AWS Secret Access Key [None]: <YOUT_ACCESS_KEY> Default region name [None]: us-east-2 Default output format [None]:

RUN TERRAFORM

To validade this code with terraform run a PLAN command in your terminal

terraform plan

To create the resources run a terraform APPLY

terraform apply

*this command will create the resources at your account and can result in charges on your card

To remove the resources run a terraform DESTROY

terraform destroy

Run Project

git clone https://github.com/krismorte/terraform-jenkins.git

cd terraform-jenkins.git

terraform init

terraform apply -auto-approve

Outputs

Name Description
jenkis-ssh Command to access ec2 command line
jenkis-url Url to access your jenkins

Jenkins

Using the ssh output command to get the initial password to start jenkins configuration

..but firts change the permission on generated ssh key

chmod 400 key.pem

and get the key using the ssh command like this below

ssh -i key.pem [email protected] sudo cat /var/lib/jenkins/secrets/initialAdminPassword

you can follow this link to finalize the configuration

terraform-jenkins's People

Stargazers

Lindemberg Barbosa avatar Antonio Armando Couto Bem Filho avatar Gleds3000 avatar

Watchers

Krisnamourt Filho avatar  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.