cloudtrail-with-alarms-and-sns

david-wells-1/cloudtrail-with-alarms-and-sns/aws

Terraform Module HCL AWS

Terraform module for AWS CloudTrail with CloudWatch Alarms and an SNS Topic

Install
module "cloudtrail-with-alarms-and-sns" {
source = "david-wells-1/cloudtrail-with-alarms-and-sns/aws"
version = "0.1.4"
}
plain text: /constructs/tfmod-david-wells-1-cloudtrail-with-alarms-and-sns-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform module for AWS CloudTrail with CloudWatch Alarms and an SNS Topic This terraform module will create an AWS CloudTrail which is configured with an S3 bucket and which also streams logs to a CloudWatch Log Group. Eleven CloudWatch alarms are created with alarm notifications sent to a created SNS Topic. Remember to subscribe to the SNS Topic Module Input Variables region - The AWS region where the resources are to be created cloudtrail_name - Specifies the name of the cloudtrail cloudwatch_log_group - The name of the created Log Group sns_topic - The friendly name for the created SNS topic bucket_name - The name of the S3 bucket used by CloudTrail Usage `` module "cloudtrail" { source = "git::https://github.com/david-wells-1/terraform-aws-cloudtrail-with-alarms-and-sns.git" region =

Inputs (8)
NameTypeDescriptionDefault
cloudtrail_namestringSpecifies the name of the trail required
cloudwatch_log_groupstringThe name of the log group to be created required
sns_topicstringThe friendly name for the SNS topic to be created required
bucket_namestringThe name of the s3 bucket to be created required
regionstringThe AWS regions where resources are created required
multi_region_trailstringSpecifies whether the trail is created in the current region or in all regionsfalse
enable_loggingstringEnables logging for the trailtrue
enable_log_file_validationstringSpecifies whether log file integrity validation is enabledtrue
Outputs (7)
cloudtrail_logs_arn — The arn of the created Log Group
cloudtrail_sns_arn — The arn of the created SNS Topic
cloudtrail_bucket_id — The id of the created S3 bucket used by CloudTrail
cloudtrail_bucket_arn — The arn of the created S3 bucket used by CloudTrail
cloudtrail_id — The id of the created Trail
cloudtrail_home_region — The region in which the Trail is created
cloudtrail_arn — The arn of the created Trail
Resources (11)
aws_cloudtrailaws_cloudwatch_log_groupaws_cloudwatch_log_metric_filteraws_cloudwatch_metric_alarmaws_iam_policyaws_iam_policy_attachmentaws_iam_roleaws_s3_bucketaws_sns_topicaws_sns_topic_subscriptionaws_sqs_queue
Details
FrameworkTerraform Module
LanguageHCL
Version0.1.4
Cloud AWS
★ Stars6
Forks4
Total downloads6.6k
Inputs8
Outputs7
Resources11
Namespacedavid-wells-1
Updated