cheelim1 / terraform-provider-jumpcloud

A Terraform provider for JumpCloud
MIT License
6 stars 2 forks source link

JumpCloud Terraform Provider

Requirements

Building The Provider

Clone repository to: $GOPATH/src/github.com/cheelim1/terraform-provider-jumpcloud

mkdir -p $GOPATH/src/github.com/cheelim1
cd $GOPATH/src/github.com/cheelim1
git clone git@github.com:cheelim1/terraform-provider-jumpcloud

Enter the provider directory and build the provider

cd $GOPATH/src/github.com/cheelim1/terraform-provider-jumpcloud
make build

Using the provider

If you're building the provider, follow the instructions to install it as a plugin. After placing it into your plugins directory, run terraform init to initialize it.

The Jumpcloud API key needs to be set before using the provider. It can either be retrieved via the API or through the UI : When selecting a resource, the ID is part of URL. Export JUMPCLOUD_API_KEY to set it.

The Jumpcloud "Organization ID" is optional as only needed for multi-tenant-setups. Export JUMPCLOUD_ORG_ID to set it.

Auto Update Docs

go generate

Run tests

ex: go test -v ./... -run TestAccDataSourceJumpCloudUserGroup_basic

OpenTofu

Link: https://github.com/opentofu/registry/tree/main/providers/c/cheelim1