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_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 |
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` - 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 |
44
+
| <a name="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) `type` - The type of the member account. Valid values are `ORGANIZATION` or `INVITATION`. Defaults to `ORGANIZATION`.<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.<br/> (Optional) `invitation` - A configuration for invitation to the member account. `invitation` as defined below.<br/> (Optional) `message` - A custom message to include in the invitation to the account.<br/> (Optional) `email_notification_enabled` - Whether to send an email notification to the account when you invite it to become a member of your Macie account. This notification is in addition to an alert that the root user receives in AWS Personal Health Dashboard. Defaults to `false`. | <pre>list(object({<br/> account_id = string<br/> email = string<br/> type = optional(string, "ORGANIZATION")<br/> enabled = optional(bool, true)<br/> tags = optional(map(string), {})<br/> invitation = optional(object({<br/> message = optional(string, "")<br/> email_notification_enabled = optional(bool, false)<br/> }), {})<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
-
| <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
-
| <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 |
48
-
| <aname="input_resource_group_name"></a> [resource\_group\_name](#input\_resource\_group\_name)| (Optional) The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with `AWS` or `aws`. |`string`|`""`| no |
46
+
| <aname="input_region"></a> [region](#input\_region)| (Optional) The region in which to create the module resources. If not provided, the module resources will be created in the provider's configured region. |`string`|`null`| no |
47
+
| <aname="input_resource_group"></a> [resource\_group](#input\_resource\_group)| (Optional) A configurations of Resource Group for this module. `resource_group` as defined below.<br/> (Optional) `enabled` - Whether to create Resource Group to find and group AWS resources which are created by this module. Defaults to `true`.<br/> (Optional) `name` - The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with `AWS` or `aws`. If not provided, a name will be generated using the module name and instance name.<br/> (Optional) `description` - The description of Resource Group. Defaults to `Managed by Terraform.`. | <pre>object({<br/> enabled = optional(bool, true)<br/> name = optional(string, "")<br/> description = optional(string, "Managed by Terraform.")<br/> })</pre> |`{}`| no |
49
48
| <aname="input_tags"></a> [tags](#input\_tags)| (Optional) A map of tags to add to all resources. |`map(string)`|`{}`| no |
50
49
| <aname="input_update_frequency"></a> [update\_frequency](#input\_update\_frequency)| (Optional) How often to publish updates to policy findings for the account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events). Valid values are `15m`, `1h` or `6h`. Defaults to `15m`. |`string`|`"15m"`| no |
51
50
@@ -59,6 +58,8 @@ This module creates following resources.
59
58
| <aname="output_id"></a> [id](#output\_id)| The ID of the macie account. |
60
59
| <aname="output_member_accounts"></a> [member\_accounts](#output\_member\_accounts)| The list of configruations for member accounts on the macie account. |
61
60
| <aname="output_name"></a> [name](#output\_name)| The account ID of the macie account. |
61
+
| <aname="output_region"></a> [region](#output\_region)| The AWS region this module resources resides in. |
62
+
| <aname="output_resource_group"></a> [resource\_group](#output\_resource\_group)| The resource group created to manage resources in this module. |
62
63
| <aname="output_service_role"></a> [service\_role](#output\_service\_role)| The Amazon Resource Name (ARN) of the service-linked role that allows Macie to monitor and analyze data in AWS resources for the account. |
63
64
| <aname="output_update_frequency"></a> [update\_frequency](#output\_update\_frequency)| How often to publish updates to policy findings for the macie account. |
64
65
| <aname="output_updated_at"></a> [updated\_at](#output\_updated\_at)| The date and time, in UTC and extended RFC 3339 format, of the most recent change to the status of the Macie account. |
Copy file name to clipboardExpand all lines: modules/macie-account/variables.tf
+25-3Lines changed: 25 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,10 @@
1
+
variable"region" {
2
+
description="(Optional) The region in which to create the module resources. If not provided, the module resources will be created in the provider's configured region."
3
+
type=string
4
+
default=null
5
+
nullable=true
6
+
}
7
+
1
8
variable"enabled" {
2
9
description="(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."
3
10
type=bool
@@ -22,17 +29,35 @@ variable "member_accounts" {
22
29
(Optional) A list of configurations for member accounts on the macie account. Each block of `member_accounts` as defined below.
23
30
(Required) `account_id` - The AWS account ID for the account.
24
31
(Required) `email` - The email address for the account.
32
+
(Optional) `type` - The type of the member account. Valid values are `ORGANIZATION` or `INVITATION`. Defaults to `ORGANIZATION`.
25
33
(Optional) `enabled` - Whether to enable Amazon Macie and start all Macie activities for the member account. Defaults to `true`.
26
34
(Optional) `tags` - A map of key-value pairs that specifies the tags to associate with the account in Amazon Macie.
35
+
(Optional) `invitation` - A configuration for invitation to the member account. `invitation` as defined below.
36
+
(Optional) `message` - A custom message to include in the invitation to the account.
37
+
(Optional) `email_notification_enabled` - Whether to send an email notification to the account when you invite it to become a member of your Macie account. This notification is in addition to an alert that the root user receives in AWS Personal Health Dashboard. Defaults to `false`.
0 commit comments