scalr_environment

Resource: scalr_environment

Manage the state of environments in Scalr. Creates, updates and destroys.

Example Usage

resource "scalr_environment" "test" {
  name                            = "test-env"
  account_id                      = "acc-xxxxxxxxxx"
  default_provider_configurations = ["pcfg-xxxxxxxxxx", "pcfg-yyyyyyyyyy"]
}

Schema

Required

  • name (String) Name of the environment.

Optional

  • account_id (String) ID of the environment account, in the format acc-<RANDOM STRING>.
  • default_provider_configurations (Set of String) List of IDs of provider configurations, used in the environment workspaces by default.
  • mask_sensitive_output (Boolean) Enable masking of the sensitive console output. Defaults to true.
  • remote_backend (Boolean) If Scalr exports the remote backend configuration and state storage for your infrastructure management. Disabling this feature will also prevent the ability to perform state locking, which ensures that concurrent operations do not conflict. Additionally, it will disable the capability to initiate CLI-driven runs through Scalr.
  • tag_ids (Set of String) List of tag IDs associated with the environment.

Read-Only

  • created_by (List of Object) Details of the user that created the environment. (see below for nested schema)
  • id (String) The ID of this resource.
  • policy_groups (List of String) List of the environment policy-groups IDs, in the format pgrp-<RANDOM STRING>.
  • status (String) The status of the environment.

Nested Schema for created_by

Read-Only:

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

Import

Import is supported using the following syntax:

terraform import scalr_environment.example env-xxxxxxxxxx