-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ffec476
commit d9f637b
Showing
7 changed files
with
107 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 11 additions & 2 deletions
13
terraform-modules/terraform-alicloud-landing-zone-guardrails/examples/common/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...aform-modules/terraform-alicloud-landing-zone-guardrails/modules/control_policies/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
resource "alicloud_resource_manager_control_policy" "policy" { | ||
control_policy_name = var.name | ||
description = var.description | ||
effect_scope = "RAM" | ||
policy_document = var.policy_document | ||
} | ||
|
||
resource "alicloud_resource_manager_control_policy_attachment" "attachment" { | ||
policy_id = alicloud_resource_manager_control_policy.policy.id | ||
target_id = var.target_id | ||
} |
19 changes: 19 additions & 0 deletions
19
...-modules/terraform-alicloud-landing-zone-guardrails/modules/control_policies/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
variable "name" { | ||
type = string | ||
description = "policy name" | ||
} | ||
|
||
variable "description" { | ||
type = string | ||
description = "policy description" | ||
} | ||
|
||
variable "policy_document" { | ||
type = string | ||
description = "policy document" | ||
} | ||
|
||
variable "target_id" { | ||
type = string | ||
description = "target which policy is applied to" | ||
} |
14 changes: 12 additions & 2 deletions
14
terraform-modules/terraform-alicloud-landing-zone-guardrails/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters