1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Variables ====================================================================
variable "policies" {
description = <<-EOT
Map of SCP definitions where the content is a JSON-encoded policy document.
Targets is the list of OU or account IDs to attach the policies to.
EOT
type = map(object({
name = string
description = string
content = string
targets = list(string)
tags = optional(map(string), {})
}))
default = {}
}
variable "attachments" {
description = <<-EOT
Map of pre-existing SCP policy IDs to attach to targets.
Use for SCPs that already exist in the organization and are not managed by this stack.
EOT
type = map(object({
policy_id = string
targets = list(string)
}))
default = {}
}
|