scalr_environments
Data Source: scalr_environments
Retrieves a list of environment ids by name or tags.
Example Usage
data "scalr_environments" "exact-names" {
name = "in:production,development"
}
data "scalr_environments" "app-frontend" {
name = "like:app-frontend-"
}
data "scalr_environments" "tagged" {
tag_ids = ["tag-xxxxxxxxxx", "tag-yyyyyyyyyy"]
}
data "scalr_environments" "all" {
account_id = "acc-xxxxxxxxxx"
}
Schema
Optional
account_id
(String) ID of the account, in the formatacc-<RANDOM STRING>
.name
(String) The query used in a Scalr environment name filter.tag_ids
(Set of String) List of tag IDs associated with the environment.
Read-Only
id
(String) The ID of this resource.ids
(Set of String) The list of environment IDs, in the format [env-xxxxxxxxxxx
,env-yyyyyyyyy
].
Updated 10 days ago