Setup

Setup Guide

Download & Install Terraform

Download and install Terraform from the official website of HashiCorp.

Set up the Turbot Guardrails Terraform Provider

Turbot Guardrails Terraform Provider is available in the official Hashicorp provider registry! This allows users to easily create a configuration file and install the Guardrails Terraform provider with little effort.

The Guardrails Terraform provider users the same credentials storage as the Turbot Guardrails CLI. If you haven't already done so, set up your Turbot Guardrails CLI credentials.

  1. To install the Turbot Guardrails provider, it is necessary to define a provider configuration in the working directory. Terraform will automatically install the provider in the chosen directory.
terraform {
  required_providers {
    turbot  = {
    source  =  "turbot/turbot"
    version  =  "1.9.1"
    }
  }
}

provider "turbot" {
  # Configuration options
  # profile = 'default'
  # OR
  # workspace           = "https://turbot-customer.cloud.turbot.com"
  # access_key          = "b05*****-****-****-****-********580a"
  # secret_key          = "d79*****-****-****-****-********b28"
}
  1. After specifying the Terraform Provider, execute:
$ terraform init

Reference