Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 1.73 KB

index.md

File metadata and controls

56 lines (41 loc) · 1.73 KB
page_title description
Provider: JIRA
Terraform Provider for managing JIRA.

JIRA Provider

Working in Operations engineering organizations infrastructure is often driven by tickets. Why not track infrastructure using tickets but this time we will use code.

Example Usage

Set JIRA URL, Username and Password using environment variables

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

If you prefer Personal Access Tokens

export JIRA_URL=http:https://localhost:8080
export JIRA_TOKEN=<Personal Access Token>

It's also possible to use an API-Token from JIRA cloud. In this case, set

export JIRA_URL=https://yourinstance.atlassian.net
export [email protected]
export JIRA_PASSWORD=<API-Key>
provider "jira" {
  url = "https://myjira.atlassian.net" # Can also be set using the JIRA_URL environment variable
  user = "xxxx"                      # Can also be set using the JIRA_USER environment variable
  password = "xxxx"                  # Can also be set using the JIRA_PASSWORD environment variable
  token = "xxxx"                      # Can also be set using the JIRA_TOKEN environment variable
}

Schema

Optional

  • password (String, Sensitive) Password for the user, can also be an API Token. Can be specified with the JIRA_PASSWORD environment variable.
  • token (String, Sensitive) Personal access token of a user. Can be specified with the JIRA_TOKEN environment variable.
  • url (String) URL for your Jira instance. Can be specified with the JIRA_URL environment variable.
  • user (String) Username for your user. Can be specified with the JIRA_USER environment variable.