title | categorySlug | slug | parentDocSlug | hidden | order |
---|---|---|---|---|---|
scalr_policy_group_linkage |
scalr-terraform-provider |
provider_resource_scalr_policy_group_linkage |
provider_resources |
false |
10 |
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.
resource "scalr_policy_group_linkage" "example" {
policy_group_id = "pgrp-xxxxxxxxxx"
environment_id = "env-xxxxxxxxxx"
}
environment_id
(String) ID of the environment, in the formatenv-<RANDOM STRING>
.policy_group_id
(String) ID of the policy group, in the formatpgrp-<RANDOM STRING>
.
id
(String) The ID of the policy group linkage. It is a combination of the policy group and environment IDs in the formatpgrp-xxxxxxxxxxxxxxx/env-yyyyyyyyyyyyyyy
Import is supported using the following syntax:
terraform import scalr_policy_group_linkage.example pgrp-xxxxxxxxxx/env-xxxxxxxxxx