Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 1.82 KB

File metadata and controls

58 lines (41 loc) · 1.82 KB
page_title configcat_settings Data Source - terraform-provider-configcat
subcategory
description Use this data source to access information about existing Feature Flags or Settings. What is a Feature Flag or Setting in ConfigCat? https://configcat.com/docs/main-concepts

configcat_settings (Data Source)

Use this data source to access information about existing Feature Flags or Settings. What is a Feature Flag or Setting in ConfigCat?

Example Usage

variable "config_id" {
  type = string
}

data "configcat_settings" "settings" {
  config_id        = var.config_id
  key_filter_regex = "isAwesomeFeatureEnabled"
}


output "setting_id" {
  value = data.configcat_settings.settings.settings[0].setting_id
}

Schema

Required

  • config_id (String) The ID of the Config.

Optional

  • key_filter_regex (String) Filter the Feature Flags or Settingss by key.

Read-Only

Nested Schema for settings

Read-Only:

  • hint (String) The hint of the Feature Flag or Setting.
  • is_json (Boolean) Whether this Feature Flag or Setting should validate string values as JSON values.
  • key (String) The key of the Feature Flag or Setting.
  • name (String) The name of the Feature Flag or Setting.
  • order (Number) The order of the Feature Flag or Setting within a Config (zero-based).
  • setting_id (String) The unique Feature Flag or Setting ID.
  • setting_type (String) The Feature Flag or Setting's type. Available values: boolean|string|int|double.