scalr_environment
Data Source scalr_environment
scalr_environment
Retrieves the details of a Scalr environment.
Example Usage
data "scalr_environment" "test" {
id = "env-xxxxxxx"
account_id = "acc-xxxxxxx"
}
data "scalr_environment" "test" {
name = "environment-name"
account_id = "acc-xxxxxxx"
}
Arguments
id
- (Optional) The environment ID, in the formatenv-<RANDOM STRING>
.name
- (Optional) Name of the environment.account_id
- (Optional) ID of the environment account, in the formatacc-<RANDOM STRING>
Arguments id
and name
are both optional, specify at least one of them to obtain scalr_environment
.
Attributes
All arguments plus:
created_by
- Details of the user that created the environment.cost_estimation_enabled
- Boolean indicates if cost estimation is enabled for the environment.status
- The status of an environment.cloud_credentials
- (Deprecated) List of the environment cloud-credentials IDs, in the formatcred-<RANDOM STRING>
.policy_groups
- List of the environment policy-groups IDs, in the formatpgrp-<RANDOM STRING>
.tag_ids
- List of tag IDs associated with the environment.
The created_by
block contains:
username
- Username of creator.email
- Email address of creator.full_name
- Full name of creator.
Updated about 1 month ago