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_discovery_result"></a> [discovery\_result](#input\_discovery\_result)| (Optional) The configuration for discovery result location and encryption of the macie account. A `discovery_result` block as defined below.<br> (Required) `s3_bucket` - The name of the S3 bucket in which Amazon Macie exports the data discovery result.<br> (Optional) `s3_key_prefix` - The key prefix for the specified S3 bucket. Defaults to `""`.<br> (Required) `encryption_kms_key` - The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data. |`map(any)`|`null`| no |
42
+
| <aname="input_discovery_result_repository"></a> [discovery\_result\_repository](#input\_discovery\_result\_repository)| (Optional) The configuration for discovery result location and encryption of the macie account. A `discovery_result_repository` block as defined below.<br> (Optional) `s3_bucket` - A configuration for the S3 bucket in which Amazon Macie exports the data discovery results. `s3_bucket` as defined below.<br> (Required) `name` - The name of the S3 bucket in which Amazon Macie exports the data classification results.<br> (Optional) `key_prefix` - The key prefix for the specified S3 bucket.<br> (Required) `sse_kms_key` - The ARN of the AWS KMS key to be used to encrypt the data. |<pre>object({<br> s3_bucket = optional(object({<br> name = string<br> key_prefix = optional(string, "")<br> sse_kms_key = string<br> }))<br> })</pre> |`{}`| no |
43
43
| <aname="input_enabled"></a> [enabled](#input\_enabled)| (Optional) Whether to enable Amazon Macie and start all Macie activities for the account. Defaults to `true`. Set `false` to suspend Macie, it stops monitoring your AWS environment and does not generate new findings. The existing findings remain intact and are not affected. Delete `aws_macie2_account` resource to disable Macie, it permanently deletes all of your existing findings, classification jobs, and other Macie resources. |`bool`|`true`| no |
44
-
| <aname="input_member_accounts"></a> [member\_accounts](#input\_member\_accounts)| (Optional) A list of configurations for member accounts on the macie account. Each block of `member_accounts` as defined below.<br> (Required) `account_id` -<br> (Required) `email` -<br> (Optional) `enabled` - Whether to enable Amazon Macie and start all Macie activities for the member account.<br> (Optional) `tags` - A map of key-value pairs that specifies the tags to associate with the account in Amazon Macie. |`any`|`[]`| no |
44
+
| <aname="input_member_accounts"></a> [member\_accounts](#input\_member\_accounts)| (Optional) A list of configurations for member accounts on the macie account. Each block of `member_accounts` as defined below.<br> (Required) `account_id` - The AWS account ID for the account.<br> (Required) `email` - The email address for the account.<br> (Optional) `enabled` - Whether to enable Amazon Macie and start all Macie activities for the member account. Defaults to `true`.<br> (Optional) `tags` - A map of key-value pairs that specifies the tags to associate with the account in Amazon Macie. |<pre>list(object({<br> account_id = string<br> email = string<br> enabled = optional(bool, true)<br> tags = optional(map(string), {})<br> }))</pre>|`[]`| no |
45
45
| <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 |
46
46
| <aname="input_resource_group_description"></a> [resource\_group\_description](#input\_resource\_group\_description)| (Optional) The description of Resource Group. |`string`|`"Managed by Terraform."`| no |
47
47
| <aname="input_resource_group_enabled"></a> [resource\_group\_enabled](#input\_resource\_group\_enabled)| (Optional) Whether to create Resource Group to find and group AWS resources which are created by this module. |`bool`|`true`| no |
@@ -54,6 +54,7 @@ This module creates following resources.
54
54
| Name | Description |
55
55
|------|-------------|
56
56
| <aname="output_created_at"></a> [created\_at](#output\_created\_at)| The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created. |
57
+
| <aname="output_discovery_result_repository"></a> [discovery\_result\_repository](#output\_discovery\_result\_repository)| The configuration for discovery result location and encryption of the macie account. |
57
58
| <aname="output_enabled"></a> [enabled](#output\_enabled)| Whether the macie account is eanbled. |
58
59
| <aname="output_id"></a> [id](#output\_id)| The ID of the macie account. |
59
60
| <aname="output_member_accounts"></a> [member\_accounts](#output\_member\_accounts)| The list of configruations for member accounts on the macie account. |
Copy file name to clipboardExpand all lines: modules/macie-account/variables.tf
+27-14Lines changed: 27 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -20,27 +20,40 @@ variable "update_frequency" {
20
20
variable"member_accounts" {
21
21
description=<<EOF
22
22
(Optional) A list of configurations for member accounts on the macie account. Each block of `member_accounts` as defined below.
23
-
(Required) `account_id` -
24
-
(Required) `email` -
25
-
(Optional) `enabled` - Whether to enable Amazon Macie and start all Macie activities for the member account.
23
+
(Required) `account_id` - The AWS account ID for the account.
24
+
(Required) `email` - The email address for the account.
25
+
(Optional) `enabled` - Whether to enable Amazon Macie and start all Macie activities for the member account. Defaults to `true`.
26
26
(Optional) `tags` - A map of key-value pairs that specifies the tags to associate with the account in Amazon Macie.
27
27
EOF
28
-
type=any
29
-
default=[]
30
-
nullable=false
28
+
type=list(object({
29
+
account_id =string
30
+
email =string
31
+
enabled =optional(bool, true)
32
+
tags =optional(map(string), {})
33
+
}))
34
+
default=[]
35
+
nullable=false
31
36
}
32
37
33
-
34
-
variable"discovery_result" {
38
+
variable"discovery_result_repository" {
35
39
description=<<EOF
36
-
(Optional) The configuration for discovery result location and encryption of the macie account. A `discovery_result` block as defined below.
37
-
(Required) `s3_bucket` - The name of the S3 bucket in which Amazon Macie exports the data discovery result.
38
-
(Optional) `s3_key_prefix` - The key prefix for the specified S3 bucket. Defaults to `""`.
39
-
(Required) `encryption_kms_key` - The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
40
+
(Optional) The configuration for discovery result location and encryption of the macie account. A `discovery_result_repository` block as defined below.
41
+
(Optional) `s3_bucket` - A configuration for the S3 bucket in which Amazon Macie exports the data discovery results. `s3_bucket` as defined below.
42
+
(Required) `name` - The name of the S3 bucket in which Amazon Macie exports the data classification results.
43
+
(Optional) `key_prefix` - The key prefix for the specified S3 bucket.
44
+
(Required) `sse_kms_key` - The ARN of the AWS KMS key to be used to encrypt the data.
40
45
EOF
41
-
type=map(any)
42
-
default=null
46
+
type=object({
47
+
s3_bucket =optional(object({
48
+
name =string
49
+
key_prefix =optional(string, "")
50
+
sse_kms_key =string
51
+
}))
52
+
})
53
+
default={}
54
+
nullable=false
43
55
}
56
+
44
57
variable"tags" {
45
58
description="(Optional) A map of tags to add to all resources."
0 commit comments