Skip to content

Commit

Permalink
fixed docs
Browse files Browse the repository at this point in the history
  • Loading branch information
emocharnik committed Oct 7, 2022
1 parent af8d7a3 commit de840ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/data-sources/scalr_variable.md
Expand Up @@ -8,7 +8,7 @@ Retrieves the details of a variable.
```hcl
data "scalr_variable" "test_var" {
key = "key"
category = "cat"
category = "terraform"
account_id = "acc-tgobtsrgo3rlks8"
envrironment_id = "env-sv0425034857d22"
workspace_id = "ws-tlbp7litrs55vgg"
Expand All @@ -17,7 +17,7 @@ data "scalr_variable" "test_var" {

## Argument Reference

* `key` - (Optional) The name of a Scalr variable.
* `key` - (Required) The name of a Scalr variable.
* `category` - (Optional) The category of a Scalr variable.
* `account_id` - (Optional) ID of the account, in the format `acc-<RANDOM STRING>`
* `envrironment_id` - (Optional) The identifier of the Scalr environment, in the format `env-<RANDOM STRING>`. Used to shrink the scope of the variable in case the variable name exists in multiple environments.
Expand Down
8 changes: 4 additions & 4 deletions docs/data-sources/scalr_variables.md
@@ -1,23 +1,23 @@

# Data Source `scalr_variables`

Retrieves the details of variables.
Retrieves the list of variables by the given filters.

## Example Usage

```hcl
data "scalr_variables" "vars" {
keys = ["key1", "key2", "key3"]
category = "cat"
account_id = "acc-tgobtsrgo3rlks8" # ignore global scope variables
category = "terraform" # or shell
account_id = "acc-tgobtsrgo3rlks8"
envrironment_ids = ["env-sv0425034857d22", "null"]
workspace_ids = ["ws-tlbp7litrs55vgg", "null"]
}
```

## Argument Reference

* `keys` - (Optional) A list of names to be used in the query used in a Scalr variable name filter.
* `keys` - (Optional) A list of keys to be used in the query used in a Scalr variable name filter.
* `category` - (Optional) The category of a Scalr variable.
* `account_id` - (Optional) ID of the account, in the format `acc-<RANDOM STRING>`
* `envrironment_ids` - (Optional) A list of identifiers of the Scalr environments, in the format `env-<RANDOM STRING>`. Used to shrink the variable's scope in case the variable name exists in multiple environments.
Expand Down

0 comments on commit de840ee

Please sign in to comment.