scalr_environment Resource¶
Manage the state of environments in Scalr. Creates, updates and destroy.
Example Usage¶
Basic usage:
resource "scalr_environment" "test" {
name = "test-env"
account_id = "acc-<id>"
cost_estimation_enabled = true
policy_groups = ["pgrp-xxxxx", "pgrp-yyyyy"]
}
Argument Reference¶
name
- (Required) Name of the environment.account_id
- (Required) ID of the environment account, in the formatacc-<RANDOM STRING>
cost_estimation_enabled
- (Optional) Set (true/false) to enable/disable cost estimation for the environment. Defaulttrue
.policy_groups
- (Optional) List of the environment policy-groups IDs, in the formatpgrp-<RANDOM STRING>
.
Attributes¶
All arguments plus:
id
- The environment ID, in the formatenv-<RANDOM STRING>
.created_by
- Details of the user that created the environment.status
- Shows status of the environment.
The created_by
block contains:
username
- Username of creator.email
- Email address of creator.full_name
- Full name of creator.