scalr_policy_group_linkage

Resource: scalr_policy_group_linkage

Manage policy group to environment linking in Scalr. Create, update and destroy.

-> Note To manage a linkage use either this resource or the environments attribute of the scalr_policy_group resource.

Example Usage

resource "scalr_policy_group_linkage" "example" {
  policy_group_id = "pgrp-xxxxxxxxxx"
  environment_id  = "env-xxxxxxxxxx"
}

Schema

Required

  • environment_id (String) ID of the environment, in the format env-<RANDOM STRING>.
  • policy_group_id (String) ID of the policy group, in the format pgrp-<RANDOM STRING>.

Read-Only

  • id (String) The ID of the policy group linkage. It is a combination of the policy group and environment IDs in the format pgrp-xxxxxxxxxxxxxxx/env-yyyyyyyyyyyyyyy

Import

Import is supported using the following syntax:

terraform import scalr_policy_group_linkage.example pgrp-xxxxxxxxxx/env-xxxxxxxxxx