This module creates following resources.
aws_macie2_accountaws_macie2_organization_configuration(optional)aws_macie2_member(optional)aws_macie2_classification_export_configuration(optional)
| Name | Version |
|---|---|
| terraform | >= 1.12 |
| aws | >= 6.12 |
| Name | Version |
|---|---|
| aws | 6.13.0 |
| Name | Source | Version |
|---|---|---|
| resource_group | tedilabs/misc/aws//modules/resource-group | ~> 0.12.0 |
| Name | Type |
|---|---|
| aws_macie2_account.this | resource |
| aws_macie2_classification_export_configuration.this | resource |
| aws_macie2_member.this | resource |
| aws_macie2_organization_configuration.this | resource |
| aws_caller_identity.this | data source |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| discovery_result_repository | (Optional) The configuration for discovery result location and encryption of the macie account. A discovery_result_repository block as defined below.(Optional) s3_bucket - A configuration for the S3 bucket in which Amazon Macie exports the data discovery results. s3_bucket as defined below.(Required) name - The name of the S3 bucket in which Amazon Macie exports the data classification results.(Optional) key_prefix - The key prefix for the specified S3 bucket.(Required) sse_kms_key - The ARN of the AWS KMS key to be used to encrypt the data. |
object({ |
{} |
no |
| 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 |
| member_accounts | (Optional) A list of configurations for member accounts on the macie account. Each block of member_accounts as defined below.(Required) account_id - The AWS account ID for the account.(Required) email - The email address for the account.(Optional) type - The type of the member account. Valid values are ORGANIZATION or INVITATION. Defaults to ORGANIZATION.(Optional) enabled - Whether to enable Amazon Macie and start all Macie activities for the member account. Defaults to true.(Optional) tags - A map of key-value pairs that specifies the tags to associate with the account in Amazon Macie.(Optional) invitation - A configuration for invitation to the member account. invitation as defined below.(Optional) message - A custom message to include in the invitation to the account.(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. |
list(object({ |
[] |
no |
| module_tags_enabled | (Optional) Whether to create AWS Resource Tags for the module informations. | bool |
true |
no |
| organization_config | (Optional) The organization configurations for the macie account. organization_config as defined below.(Optional) auto_enable - Whether to automatically enable Macie for new accounts in the organization. Defaults to true. |
object({ |
{} |
no |
| 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 |
| resource_group | (Optional) A configurations of Resource Group for this module. resource_group as defined below.(Optional) enabled - Whether to create Resource Group to find and group AWS resources which are created by this module. Defaults to true.(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.(Optional) description - The description of Resource Group. Defaults to Managed by Terraform.. |
object({ |
{} |
no |
| tags | (Optional) A map of tags to add to all resources. | map(string) |
{} |
no |
| 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 |
| Name | Description |
|---|---|
| created_at | The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created. |
| discovery_result_repository | The configuration for discovery result location and encryption of the macie account. |
| enabled | Whether the macie account is eanbled. |
| id | The ID of the macie account. |
| member_accounts | The list of configruations for member accounts on the macie account. |
| name | The account ID of the macie account. |
| organization_config | The organization configuration for the macie account. |
| region | The AWS region this module resources resides in. |
| resource_group | The resource group created to manage resources in this module. |
| 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. |
| update_frequency | How often to publish updates to policy findings for the macie account. |
| 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. |