| 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 |
Use this data source to access information about existing Feature Flags or Settings. What is a Feature Flag or Setting in ConfigCat?
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
}config_id(String) The ID of the Config.
key_filter_regex(String) Filter the Feature Flags or Settingss by key.
id(String) Internal ID of the data source. Do not use.settings(Attributes List) (see below for nested schema)
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.