scalr_environment

Data Source: scalr_environment

Retrieves the details of a Scalr environment.

Example Usage

data "scalr_environment" "example1" {
  id         = "env-xxxxxxxxxx"
  account_id = "acc-xxxxxxxxxx"
}

data "scalr_environment" "example2" {
  name       = "environment-name"
  account_id = "acc-xxxxxxxxxx"
}

Schema

Optional

  • account_id (String) ID of the environment account, in the format acc-<RANDOM STRING>
  • id (String) The environment ID, in the format env-<RANDOM STRING>.
  • name (String) Name of the environment.

Read-Only

  • cost_estimation_enabled (Boolean) Boolean indicates if cost estimation is enabled for the environment.
  • created_by (List of Object) Details of the user that created the environment. (see below for nested schema)
  • default_provider_configurations (List of String) List of IDs of provider configurations, used in the environment workspaces by default.
  • policy_groups (List of String) List of the environment policy-groups IDs, in the format pgrp-<RANDOM STRING>.
  • status (String) The status of an environment.
  • tag_ids (List of String) List of tag IDs associated with the environment.

Nested Schema for created_by

Read-Only:

  • email (String)
  • full_name (String)
  • username (String)