-
Notifications
You must be signed in to change notification settings - Fork 4
/
example.tf
35 lines (29 loc) · 1.29 KB
/
example.tf
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
provider "aws" {
region = "us-east-1"
}
module "s3_bucket" {
source = "clouddrove/s3/aws"
version = "2.0.0"
name = "clouddrove-bucket"
environment = "test"
label_order = ["name", "environment"]
versioning = true
acl = "private"
}
module "cloudtrail-slack-notification" {
source = "./../"
name = "cloudtrail-slack-notification"
environment = "test"
label_order = ["name", "environment"]
enabled = true
bucket_arn = module.s3_bucket.arn
bucket_name = module.s3_bucket.id
variables = {
slack_webhook = "https://hooks.slack.com/services/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"
slack_channel = "testing"
event_ignore_list = jsonencode(["^Describe*", "^Assume*", "^List*", "^Get*", "^Decrypt*", "^Lookup*", "^BatchGet*", "^CreateLogStream$", "^RenewRole$", "^REST.GET.OBJECT_LOCK_CONFIGURATION$", "TestEventPattern", "TestScheduleExpression", "CreateNetworkInterface", "ValidateTemplate"])
event_alert_list = jsonencode(["DetachRolePolicy", "ConsoleLogin"])
user_ignore_list = jsonencode(["^awslambda_*", "^aws-batch$", "^bamboo*", "^i-*", "^[0-9]*$", "^ecs-service-scheduler$", "^AutoScaling$", "^AWSCloudFormation$", "^CloudTrailBot$", "^SLRManagement$"])
source_list = jsonencode(["signin.amazonaws.com"])
}
}