-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathterraform.tf
More file actions
40 lines (30 loc) · 1015 Bytes
/
terraform.tf
File metadata and controls
40 lines (30 loc) · 1015 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
######################################################################
### EXAMPLE USAGE: AWS_CloudTrail
module "CloudTrail_Bucket" {
/* dependency inputs */
}
module "CloudTrail_CloudWatch_Logs" {
/* dependency inputs */
}
module "AWS_IAM" {
/* dependency inputs */
}
module "AWS_CloudTrail" {
source = "git@github.com:Nerdware-LLC/fixit-cloud-modules.git//AWS_CloudTrail"
trail_name = "My_CloudTrail"
is_organization_trail = true
include_global_service_events = true
logging_config = {
s3_bucket_name = module.CloudTrail_Bucket.Bucket.name
sse_kms_key_arn = module.CloudTrail_Bucket.SSE_KMS_Key.arn
}
cloud_watch_logs_config = {
log_group_arn = module.CloudTrail_CloudWatch_Logs.Log_Group.arn
log_group_arn = module.AWS_IAM.Roles["CloudTrail_CloudWatch_Delivery_Role"].arn
}
trail_tags = {
Name = "My_CloudTrail"
is_a_good_cloud_trail = "indeed it is"
}
}
######################################################################