terraform-provider-jira

command module
v0.0.0-...-21169cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2018 License: MIT Imports: 3 Imported by: 0

README

terraform-provider-jira

Terraform Provider for creating, updating and deleting JIRA issues. This can be used to interlink infrastructure management with JIRA issues closely.

terraform-provider-jira demo

Install

  • Download terraform-provider-jira binary from Github
  • Unzip the zip file
  • Then move terraform-provider-jira binary to $HOME/.terraform.d/plugins directory
mkdir -p $HOME/.terraform.d/plugins
mv terraform-provider-jira $HOME/.terraform.d/plugins/terraform-provider-jira

  • Run terraform init in your terraform project
terraform init

Used to initialize the plugin

Example Usage

Set JIRA URL, Username and Password using environment variables

export JIRA_URL=http://localhost:8080
export JIRA_USER=username
export JIRA_PASSWORD=password

Create terraform config file

resource "jira_issue" "example" {
  assignee    = "anubhavmishra"
  reporter    = "anubhavmishra"

  issue_type  = "Task"

  // description is optional  
  description = "This is a test issue"
  summary     = "Created using Terraform"

  project_key = "PROJ"
}

Run terraform init

terraform init

Initializing provider plugins...

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.

Run terraform plan

terraform plan

Check if the terraform plan looks good

Run terraform apply

terraform apply

Rationale

Working in Operations engineering organizations infrastructure is often driven by tickets. Why not track infrastructure using tickets but this time we will use code. This just showcases that you can pretty much Terraform anything!

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL