cloudtrail

clouddrove/cloudtrail/aws

Terraform Module HCL AWS

Terraform module to provision an AWS CloudTrail and an encrypted S3 bucket with versioning to store CloudTrail logs

Install
module "cloudtrail" {
source = "clouddrove/cloudtrail/aws"
version = "1.4.2"
}
plain text: /constructs/tfmod-clouddrove-cloudtrail-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

![Banner][website] Terraform AWS Cloudtrail With our comprehensive DevOps toolkit - streamline operations, automate workflows, enhance collaboration and, most importantly, deploy with confidence. We are a group of DevOps engineers & architects, joining hands in this ever evolving digital landscape. With our strong belief in Automation; just like microservices, always on the lookout to split the the infrastructure into smaller connected resources (database, cluster and more) which could be standardized, are manageable, scalable, secure & follow industry best practices. This module includes Terraform open source, examples, and automation tests (for better understanding), which would help you create and improve your infrastructure with minimalistic coding. Prerequisites and Providers This tab

Inputs (30)
NameTypeDescriptionDefault
namestringName (e.g. `app` or `cluster`). required
read_write_typestringSpecify if you want your trail to log read-only events, write-only events, or al"All"
data_resource_typestringThe resource type in which you want to log data events. You can specify only the"AWS::S3::Object"
iam_role_namestringName for the CloudTrail IAM role"cloudtrail-cloudwatch-logs-role"
enable_loggingboolEnable logging for the trail.true
event_selector_data_resourceboolSpecifies logging data events. Fields documented below.false
enable_log_file_validationboolSpecifies whether log file integrity validation is enabled. Creates signed digestrue
cloudwatch_log_group_namestringThe name of the CloudWatch Log Group that receives CloudTrail events."cloudtrail-events"
environmentstringEnvironment (e.g. `prod`, `dev`, `staging`).""
kms_enabledboolIf true, deploy the resources for kms in the module. Note: Supports in only singfalse
include_global_service_eventsboolSpecifies whether the trail is publishing events from global services such as IAtrue
is_organization_trailboolThe trail is an AWS Organizations trail.false
sns_topic_namestringSpecifies the name of the Amazon SNS topic defined for notification of log file null
label_orderlist(any)Label order, e.g. `name`,`application`.[ "name", "environment" ]
managedbystringManagedBy, eg 'CloudDrove'."hello@clouddrove.com"
include_management_eventsbool Specify if you want your event selector to include management events for your ttrue
log_retention_daysstringNumber of days to keep AWS logs around in specific log group.90
repositorystringTerraform current module repo"https://github.com/clouddrove/terraform
s3_bucket_namestringS3 bucket name for CloudTrail log.""
s3_key_prefixstring(Optional) S3 key prefix that follows the name of the bucket you have designated""
event_selectorboolSpecifies an event selector for enabling data event logging. Fields documented btrue
Outputs (4)
id — The name of the trail.
home_region — The region in which the trail was created.
arn — The Amazon Resource Name of the trail.
tags — A mapping of tags to assign to the resource.
Resources (6)
aws_cloudtrailaws_cloudwatch_log_groupaws_iam_policyaws_iam_policy_attachmentaws_iam_roleaws_kms_key
Details
FrameworkTerraform Module
LanguageHCL
Version1.4.2
Cloud AWS
★ Stars11
Forks11
Total downloads11.0k
Inputs30
Outputs4
Resources6
LicenseApache-2.0
Namespaceclouddrove
Updated