Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

trussworks/terraform-aws-cloudtrail-event-notifications

DEPRECIATION NOTICE

This module has been deprecated and is no longer maintained. Should you need to continue to use it, please fork the repository. Thank you.

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

Usage

module "cloudtrail-event-notifications" {
  source  = "trussworks/cloudtrail-event-notifications/aws"
  version = "1.0.0"

  sns_topic_name = "slack-events"
}

Terraform Versions

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.

Requirements

Name Version
terraform >= 0.13.0
aws >= 3.0

Providers

Name Version
aws >= 3.0

Modules

No modules.

Resources

Name Type
aws_cloudwatch_event_rule.main resource
aws_cloudwatch_event_target.main resource
aws_sns_topic.main data source

Inputs

Name Description Type Default Required
sns_topic_name The name of the SNS topic to send CloudTrail event notifications. string n/a yes

Outputs

No outputs.