百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

terraform-provider-jira

> 编程语言
开源

Terraform 提供程序用于配置 JIRA

182 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Terraform 提供程序用于配置 JIRA

terraform-provider-jira

Terraform Provider for managing JIRA. (View on registry.terraform.io)

Data Sources

  • Issue Keys from JQL
  • Custom Fields

Resources

  • Comments
  • Components
  • Filters & Filter Permissions
  • Groups
  • Group Memberships
  • Issues
  • Issue Links
  • Issue Types
  • Issue Link Types
  • Projects
  • Project Categories
  • Project Roles
  • Roles
  • Users
  • Webhooks

This can be used to interlink infrastructure management with JIRA issues closely.

Compatibility

Version Status
Latest Tested in CI
7.x Untested
Cloud Untested

Install

Terraform v0.13 or newer

Copy this code into yout terraform configuration file (for example main.tf)

hcl
terraform {
  required_providers {
    jira = {
      source = "fourplusone/jira"
      version = "0.1.16"
    }
  }
}

Run terraform init

Example Usage

Set JIRA URL, Username and Password using environment variables

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

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

bash
export JIRA_URL=https://yourinstance.atlassian.net
export [email protected]
export JIRA_PASSWORD=

Create terraform config file

…

Run terraform init

bash
terraform init
bash

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

bash
terraform plan

Check if the terraform plan looks good

Run terraform apply

bash
terraform apply

Building

If you wish to work on the provider, you'll first need Go installed on your machine.

Note: This project uses Go Modules making it safe to work with it outside of your existing GOPATH. The instructions that follow assume a directory in your home directory outside of the standard GOPATH (i.e $HOME/development/terraform-providers/).

Clone repository to: $HOME/development/terraform-providers/

bash
$ mkdir -p $HOME/development/terraform-providers/; cd $HOME/development/terraform-providers/
$ git clone [email protected]:fourplusone/terraform-provider-jira
...

Enter the provider directory and run make build to build the provider

bash
$ make build

Testing

Testing requires a JIRA instance. To set up a temporary, local JIRA instance you can use the Docker Atlas container:

bash
$ git clone https://github.com/fourplusone/docker-atlas
$ cd docker-atlas
$ docker build -f jira.dockerfile . -t jira-docker
$ docker run --rm -t -p 2990:2990 jira-docker

Building and starting the JIRA instance will take several minutes.

To run the tests, run make test inside the provider folder

bash
$ make test

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!

Credits

  • Anubhav Mishra (anubhavmishra)
  • Matthias Bartelmess (fourplusone)

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Go

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言