terraform-aws-cloudtrail-controltower
A Terraform Module for configuring an integration with Lacework and AWS for CloudTrail analysis for organizations using AWS Control Tower.
Name
Description
Type
Default
Required
cross_account_policy_name
n/a
string
""
no
enable_log_file_validation
Specifies whether cloudtrail log file integrity validation is enabled
bool
false
no
external_id_length
Deprecated - Will be removed on our next major release v1.0.0
number
16
no
iam_role_arn
The IAM role ARN is required when setting use_existing_iam_role to true
string
""
no
iam_role_external_id
The external ID configured inside the IAM role is required when setting use_existing_iam_role to true
string
""
no
iam_role_name
The IAM role name. Required to match with iam_role_arn if use_existing_iam_role is set to true
string
""
no
kms_key_arn
The KMS key arn, if Control Tower was deployed with custom KMS key
string
""
no
lacework_aws_account_id
The Lacework AWS account that the IAM role will grant access
string
"434813966438"
no
lacework_integration_name
The name of the integration in Lacework.
string
"TF cloudtrail"
no
org_account_mappings
Mapping of AWS accounts to Lacework accounts within a Lacework organization
list(object({ default_lacework_account = string mapping = list(object({ lacework_account = string aws_accounts = list(string) })) }))
[]
no
prefix
The prefix that will be use at the beginning of every generated resource
string
"lacework-ct"
no
s3_bucket_arn
The ARN for the S3 bucket for consolidated CloudTrail logging. Usually in the form like: arn:aws:s3:::aws-controltower-logs-<log_archive_account_id>-<control_tower_region>
string
n/a
yes
sns_topic_arn
The SNS topic ARN. Usually in the form of: arn:aws:sns::<aws_audit_account_id>:aws-controltower-AllConfigNotifications
string
n/a
yes
sqs_queue_name
The SQS queue name
string
""
no
tags
A map/dictionary of Tags to be assigned to created resources
map(string)
{}
no
use_existing_iam_role
Set this to true to use an existing IAM role from the log_archive AWS Account
bool
false
no
wait_time
Amount of time to wait before the next resource is provisioned.
string
"10s"
no