From 8df4fc557b02e2e9f9720ef1f44235c850c9dcce Mon Sep 17 00:00:00 2001 From: Melinda Fekete Date: Thu, 31 Oct 2024 10:32:49 +0100 Subject: [PATCH] Apply suggestions from code review --- website/docs/reference/terraform.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/docs/reference/terraform.mdx b/website/docs/reference/terraform.mdx index c30634f3e2..845ac053b1 100644 --- a/website/docs/reference/terraform.mdx +++ b/website/docs/reference/terraform.mdx @@ -14,14 +14,14 @@ title: Using Unleash through Terraform The [Unleash Terraform provider](https://github.com/Unleash/terraform-provider-unleash) allows you to manage and configure your Unleash programmatically using Terraform, enabling automated and scalable management for your infrastructure. By integrating Unleash with Terraform, you can use infrastructure as code (IaC) to optimize the setup and maintenance of your Unleash instance configuration. -The Unleash Terraform provider is designed to help you with the initial setup and configuration of an instance. The provider does not support managing feature flags through Terraform. Since most [feature flags are short-lived](/topics/feature-flags/feature-flag-best-practices#7-make-flags-short-lived), we recommend managing them through the Unleash Admin UI. +The Unleash Terraform provider is designed to help you with the **initial setup and configuration** of an instance. The provider does not support managing feature flags through Terraform. Since most [feature flags are short-lived](/topics/feature-flags/feature-flag-best-practices#7-make-flags-short-lived), we recommend managing them through the Unleash Admin UI. For a detailed tutorial, follow along with [Managing Unleash through Terraform](https://www.youtube.com/watch?v=B4OIBC1u1ns). For more examples for the specific resources and data sources, visit the [Terraform registry](https://registry.terraform.io/providers/Unleash/unleash/latest/docs/data-sources/permission). ## Manage Terraform access -The API token permissions as well as your Unleash [plan](https://www.getunleash.io/pricing) determine what objects Terraform can manage. +The permissions of the API token you use with Terraform and your Unleash [plan](https://www.getunleash.io/pricing) determine what objects Terraform can manage. - For Open-Source and Pro, use an [admin token](/reference/api-tokens-and-client-keys#admin-tokens) or [personal access tokens](/reference/api-tokens-and-client-keys#personal-access-tokens). - For Enterprise, use [service accounts](/reference/service-accounts). For larger teams, we recommend multiple service accounts with different permissions and separate Terraform repositories for each team under their respective projects. @@ -31,6 +31,7 @@ The API token permissions as well as your Unleash [plan](https://www.getunleash. - `unleash_api_token`: Regulate access and maintain secure communication with verified integrations. +Example usage: ```hcl resource "unleash_api_token" "client_token" { token_name = "client_token"