Enables notifications for any changes to CloudTrail. Notifications are sent to an SNS topic.
Creates the following resources:
- CloudWatch event rule to filter AWS CloudTrail API calls
- CloudWatch event target to send to SNS topic
module "cloudtrail-event-notifications" {
source = "trussworks/cloudtrail-event-notifications/aws"
version = "1.0.0"
sns_topic_name = "slack-events"
}
Terraform 0.13 and later. Pin module version to ~> 3.X
. Submit pull-requests to master
branch.
Terraform 0.12. Pin module version to ~> 2.X
. Submit pull-requests to terraform012
branch.
Name | Version |
---|---|
terraform | >= 0.13.0 |
aws | >= 3.0 |
Name | Version |
---|---|
aws | >= 3.0 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
sns_topic_name | The name of the SNS topic to send CloudTrail event notifications. | string |
n/a | yes |
No output.