Skip to content

Luminor task to set up Jenkins on EC2 with Terraform

Notifications You must be signed in to change notification settings

pavars/luminor-jenkins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Configuration for EC2

The main.tf configuration will set up AWS EC2 instance and attach Elastic IP with

  • Ubuntu 18.04 Server
  • Nginx
  • Jenkins

network.tf will create a new VPC, Subnet, GW and add route to routing table and add a new Security Group.

Prerequisites:

Install them locally:

Variables:

region: "aws region"
amis(map): "region" = "ami_id"
aws_keys(map): access and secret keys
ssh_pubkey: SSH public key location
ssh_privkey: SSH private key location

Example usage:

Before running it check that aws is configured

$ aws configure

Otherwise specify the keys in variables.tf

    "access" = "YOUR-ACCESS-KEY"
    "secret" = "YOUR-SECRET-KEY"
git clone [email protected]:pavars/luminor-jenkins.git

# Make sure that keys are correct and run

terraform init
terraform apply

About

Luminor task to set up Jenkins on EC2 with Terraform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published