scalr_environment
Resource: scalr_environment
Manages the state of environments in Scalr.
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 account, in the formatacc-<RANDOM STRING>
.default_provider_configurations
(Set of String) List of IDs of provider configurations, used in the environment workspaces by default.federated_environments
(Set of String) The list of environment identifiers that are allowed to access this environment. Use["*"]
to share with all environments.mask_sensitive_output
(Boolean) Enable masking of the sensitive console output. Defaults totrue
.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 formatpgrp-<RANDOM STRING>
.status
(String) The status of the environment.
Nested Schema for created_by
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
Updated 20 days ago