You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| <aname="input_source_rule"></a> [source\_rule](#input\_source\_rule)| (Required) The identifier for AWS Config managed rule. Use the format like `root-account-mfa-enabled` instead of predefiend format like `ROOT_ACCOUNT_MFA_ENABLED`. |`string`| n/a | yes |
45
45
| <aname="input_description"></a> [description](#input\_description)| (Optional) The description of the rule. Use default description if not provided. |`string`|`null`| no |
46
+
| <aname="input_evaluation_modes"></a> [evaluation\_modes](#input\_evaluation\_modes)| (Optional) A set of evaluation modes to enable for the Config rule. Valid values are `DETECTIVE`, `PROACTIVE`. Default value contains only `DETECTIVE`. |`set(string)`| <pre>[<br> "DETECTIVE"<br>]</pre> | no |
46
47
| <aname="input_excluded_accounts"></a> [excluded\_accounts](#input\_excluded\_accounts)| (Optional) A list of AWS account identifiers to exclude from the rule. Only need when `level` is configured with value `ORGANIZATION`. |`list(string)`|`[]`| no |
47
48
| <aname="input_level"></a> [level](#input\_level)| (Optional) Choose to create a rule across all accounts in your Organization. Valid values are `ACCOUNT` and `ORGANIZATION`. Use `ORGANIZATION` level in Organization master account or delegated administrator accounts. |`string`|`"ACCOUNT"`| no |
48
49
| <aname="input_module_tags_enabled"></a> [module\_tags\_enabled](#input\_module\_tags\_enabled)| (Optional) Whether to create AWS Resource Tags for the module informations. |`bool`|`true`| no |
@@ -64,6 +65,7 @@ This module creates following resources.
64
65
|------|-------------|
65
66
| <aname="output_arn"></a> [arn](#output\_arn)| The Amazon Resource Name (ARN) of the rule. |
66
67
| <aname="output_description"></a> [description](#output\_description)| The description of the rule. |
68
+
| <aname="output_evaluation_modes"></a> [evaluation\_modes](#output\_evaluation\_modes)| A set of evaluation modes to enable for the Config rule. |
67
69
| <aname="output_excluded_accounts"></a> [excluded\_accounts](#output\_excluded\_accounts)| A list of AWS account identifiers excluded from the rule. |
68
70
| <aname="output_id"></a> [id](#output\_id)| The ID of the rule. |
69
71
| <aname="output_level"></a> [level](#output\_level)| The level of the rule. `ACOUNT` or `ORGANIZATION`. The rule is for accounts in your Organization if the value is configured with `ORGANIZATION`. |
Copy file name to clipboardExpand all lines: modules/config-managed-rule/variables.tf
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,21 @@ variable "level" {
37
37
}
38
38
}
39
39
40
+
variable"evaluation_modes" {
41
+
description="(Optional) A set of evaluation modes to enable for the Config rule. Valid values are `DETECTIVE`, `PROACTIVE`. Default value contains only `DETECTIVE`."
42
+
type=set(string)
43
+
default=["DETECTIVE"]
44
+
nullable=false
45
+
46
+
validation {
47
+
condition=alltrue([
48
+
formodeinvar.evaluation_modes:
49
+
contains(["DETECTIVE", "PROACTIVE"], mode)
50
+
])
51
+
error_message="Valid values for `evaluation_modes` should be one of `DETECTIVE`, `PROACTIVE`."
52
+
}
53
+
}
54
+
40
55
variable"scope" {
41
56
description="(Optional) Choose when evaluations will occur. Valid values are `ALL_CHANGES`, `RESOURCES`, or `TAGS`."
0 commit comments