generated from trussworks/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 20
/
variables.tf
125 lines (104 loc) · 2.91 KB
/
variables.tf
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
variable "target" {
description = "OU resource to attach SCP"
type = object({
name = string
id = string
})
}
variable "deny_all" {
description = "If false, create a combined policy. If true, deny all access"
default = false
type = bool
}
# Policy Statement Switches
variable "deny_leaving_orgs" {
description = "DenyLeavingOrgs in the OU policy."
default = false
type = bool
}
variable "deny_creating_iam_users" {
description = "DenyCreatingIAMUsers in the OU policy."
default = false
type = bool
}
variable "deny_deleting_kms_keys" {
description = "DenyDeletingKMSKeys in the OU policy."
default = false
type = bool
}
variable "deny_deleting_route53_zones" {
description = "DenyDeletingRoute53Zones in the OU policy."
default = false
type = bool
}
variable "deny_deleting_cloudwatch_logs" {
description = "DenyDeletingCloudwatchLogs in the OU policy."
default = false
type = bool
}
variable "deny_root_account" {
description = "DenyRootAccount in the OU policy."
default = false
type = bool
}
variable "protect_s3_buckets" {
description = "ProtectS3Buckets in the OU policy."
default = false
type = bool
}
variable "deny_s3_buckets_public_access" {
description = "DenyS3BucketsPublicAccess in the OU policy."
default = false
type = bool
}
variable "protect_iam_roles" {
description = "ProtectIAMRoles in the OU policy."
default = false
type = bool
}
variable "limit_ec2_instance_types" {
description = "LimitEC2InstanceTypes in the OU policy."
default = false
type = bool
}
variable "limit_regions" {
description = "LimitRegions in the OU policy."
default = false
type = bool
}
variable "require_s3_encryption" {
description = "DenyIncorrectEncryptionHeader and DenyUnEncryptedObjectUploads in the OU policy"
default = false
type = bool
}
# Policy-specific resources
variable "protect_s3_bucket_resources" {
description = "S3 bucket resource ARNs to protect from bucket and object deletion"
type = list(string)
default = [""]
}
variable "deny_s3_bucket_public_access_resources" {
description = "S3 bucket resource ARNs to block public access"
type = list(string)
default = [""]
}
variable "protect_iam_role_resources" {
description = "IAM role resource ARNs to protect from modification and deletion"
type = list(string)
default = [""]
}
variable "allowed_regions" {
description = "AWS Regions allowed for use (for use with the restrict regions SCP)"
type = list(string)
default = [""]
}
variable "allowed_ec2_instance_types" {
description = "EC2 instances types allowed for use"
type = list(string)
default = [""]
}
variable "tags" {
description = "Tags applied to the SCP policy"
type = map(string)
default = {}
}