Coder Social home page Coder Social logo

jenkins-terraform-auto's Introduction

Create the pub key for EC2 Key pair

ssh-keygen -f terraform_ec2_key

This will create two files namely terraform_ec2_key and terraform_ec2_key.pub. We are referencing terraform_ec2_key.pub in the terraform code for creating the AWS key pair

Terraform Starter

Step 0: Create .tfvars file

mkdir vars && echo 'aws_region = "us-east-1"' > vars/dev-east.tfvars

Step 1: Initialize Repo

terraform init

Step 2: Plan Resources

terraform plan -var-file="vars/dev-east.tfvars"

Step 3: Apply Resources

terraform apply -var-file="vars/dev-east.tfvars"

##Check the Public ip in the output eg.

Outputs:

Public_ip_of_the_Jenkins_EC2 = "3.91.213.1"

To login with server use below command

You need to login with your public ip as per your output

ssh [email protected] -i terraform_ec2_key

To access the Jenkins UI use URL "http://3.91.213.1:8080"

Change the IP as per your ip in the output section

jenkins-terraform-auto's People

Contributors

manmohanmirkar123 avatar

Watchers

 avatar

Forkers

vikrantdb06

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.