DEV Community

Cover image for Terraform Trello integration
marco-bertelli
marco-bertelli

Posted on • Edited on

4 1

Terraform Trello integration

amazing go

Hi everyone, today we are going to watch my first open-source terraform custom provider in collaboration with Runelab (an italian custom software and project agency).

but first what do this provider?

allow you to create a workspace,board and custom list when you create a normal project on terraform!

this automate the process of creating a trello workspace, board and lists when you create a normal project.

see an example:

#other resources creations like server and cloudfront

  required_providers {
    trello = {
      source = "marco-bertelli/trello"
      version = "0.2.3"
    }
  }
}


resource "trello_board" "my-board-name" {
    key = "your-key"
  token = "your-token"
  workspace_name = "terraform-trello"
  board_name = "test"
  cards = ["new","todo","custom"]
}
Enter fullscreen mode Exit fullscreen mode

you must put this code into main.tf

how you can see you need a trello api key and a trello token of the account in who you want to create the workspace and board (you can find key and token here link)

and later chose a name for workspace the board name and the lists names and is all!
run:

  • terraform init
  • terraform apply and you will see all online

here the result:
final result

if you like this like and share to the community!

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay