Skip to content

indentapis/terraform-provider-indent

Repository files navigation

terraform-provider-indent

Auth can be handled either with a Google Service Account JSON file, or with the indent cli.

To use the indent cli: $ indent auth login --space my-space-name

To verify you have authenticated successfully, you can check auth view:

$ indent auth view --space my-space-name 2>&1 | jq
{
  ...
  "msg": "Current User",
  "user": {
    "Id": "[email protected]",
    ...
    "Labels": [
        "indent.com/app/config/id": "space:my-space-name"
    ]
    ...
  }
}

Once you've successfully authenticated, you can initialize the provider:

provider "indent" {
  space = "my-space-name"
  // json_key_file = "/path/to/file.json"
}

And start creating webhooks:

resource "indent_webhook" "integration-okta-webhook" {
  display_name = "integration-okta-webhook"
  url          = "https://xxxxxxxx.lambda-url.us-west-2.on.aws/"
  dry_run      = false

  header {
    name  = "X-MY-CUSTOM-HEADER"
    value = "header-value"
  }

  handler {
    type      = "PullUpdate"
    resources = ["okta.v1.Group", "okta.v1.User"]
  }

  handler {
    type      = "ApplyUpdate"
    resources = ["okta.v1.User"]
  }
}