Add support for org policy custom constraints

This commit is contained in:
Aleksandr Averbukh
2022-11-08 09:34:38 +01:00
parent 0d55de6ca9
commit 3562c52520
3 changed files with 182 additions and 13 deletions

View File

@@ -188,6 +188,32 @@ variable "org_policies" {
nullable = false
}
variable "org_policies_data_path" {
description = "Path containing org policies in YAML format."
type = string
default = null
}
variable "org_policy_custom_constraints" {
description = "Organization policiy custom constraints keyed by constraint name."
type = map(object({
display_name = optional(string)
description = optional(string)
action_type = string
condition = string
method_types = list(string)
resource_types = list(string)
}))
default = {}
nullable = false
}
variable "org_policy_custom_constraints_data_path" {
description = "Path containing org policy custom constraints in YAML format."
type = string
default = null
}
variable "organization_id" {
description = "Organization id in organizations/nnnnnn format."
type = string
@@ -197,11 +223,6 @@ variable "organization_id" {
}
}
variable "org_policies_data_path" {
description = "Path containing org policies in YAML format."
type = string
default = null
}
variable "tag_bindings" {
description = "Tag bindings for this organization, in key => tag value id format."