scalr_variable
Data Source: scalr_variable
Retrieves the details of a variable.
Example Usage
data "scalr_variable" "example1" {
id = "var-xxxxxxxxxx"
account_id = "acc-xxxxxxxxxx"
}
data "scalr_variable" "example2" {
key = "key"
category = "terraform"
account_id = "acc-xxxxxxxxxx"
environment_id = "env-xxxxxxxxxx"
workspace_id = "ws-xxxxxxxxxx"
}
Schema
Optional
account_id
(String) ID of the account, in the formatacc-<RANDOM STRING>
category
(String) The category of a Scalr variable.environment_id
(String) The identifier of the Scalr environment, in the formatenv-<RANDOM STRING>
. Used to shrink the scope of the variable in case the variable name exists in multiple environments.id
(String) ID of a Scalr variable.key
(String) The name of a Scalr variable.workspace_id
(String) The identifier of the Scalr workspace, in the formatws-<RANDOM STRING>
. Used to shrink the scope of the variable in case the variable name exists on multiple workspaces.
Read-Only
description
(String) Variable verbose description, defaults to empty string.final
(Boolean) If the variable is configured as final. Indicates whether the variable can be overridden on a lower scope down the Scalr organizational model.hcl
(Boolean) If the variable is configured as a string of HCL code.sensitive
(Boolean) If the variable is configured as sensitive.value
(String) Variable value.
Updated 3 months ago