An open API service indexing awesome lists of open source software.

https://github.com/geekcell/terraform-aws-cloudtrail

Terraform module to provision an AWS Cloudtrail.
https://github.com/geekcell/terraform-aws-cloudtrail

audit aws cloudtrail terraform terraform-module

Last synced: over 1 year ago
JSON representation

Terraform module to provision an AWS Cloudtrail.

Awesome Lists containing this project

README

          

[![Geek Cell GmbH](https://raw.githubusercontent.com/geekcell/.github/main/geekcell-github-banner.png)](https://www.geekcell.io/)

### Code Quality
[![License](https://img.shields.io/github/license/geekcell/terraform-aws-cloudtrail)](https://github.com/geekcell/terraform-aws-cloudtrail/blob/master/LICENSE)
[![GitHub release (latest tag)](https://img.shields.io/github/v/release/geekcell/terraform-aws-cloudtrail?logo=github&sort=semver)](https://github.com/geekcell/terraform-aws-cloudtrail/releases)
[![Release](https://github.com/geekcell/terraform-aws-cloudtrail/actions/workflows/release.yaml/badge.svg)](https://github.com/geekcell/terraform-aws-cloudtrail/actions/workflows/release.yaml)
[![Validate](https://github.com/geekcell/terraform-aws-cloudtrail/actions/workflows/validate.yaml/badge.svg)](https://github.com/geekcell/terraform-aws-cloudtrail/actions/workflows/validate.yaml)
[![Lint](https://github.com/geekcell/terraform-aws-cloudtrail/actions/workflows/linter.yaml/badge.svg)](https://github.com/geekcell/terraform-aws-cloudtrail/actions/workflows/linter.yaml)

# Terraform AWS Cloudtrail

This Terraform module provides a preconfigured solution for setting up
AWS CloudTrail in your AWS account. CloudTrail is a service that records
API calls made to your AWS account and stores the logs in an S3 bucket for
later analysis. With this Terraform module, you can easily and efficiently
set up and manage your CloudTrail logs, ensuring that you have a
comprehensive record of all API activity in your AWS account.

Our team has extensive experience working with AWS CloudTrail and has
optimized this module to provide the best possible experience for users.
The module encapsulates all necessary configurations, making it easy to
use and integrate into your existing AWS environment. Whether you are just
getting started with AWS CloudTrail or looking for a more efficient way to
manage your logs, this Terraform module provides a preconfigured solution
for recording and storing API activity in your AWS account.

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [data\_resources](#input\_data\_resources) | Configuration block for data events. |

list(object({
type = string
values = list(string)
}))
|
[
{
"type": "AWS::S3::Object",
"values": [
"arn:aws:s3"
]
},
{
"type": "AWS::Lambda::Function",
"values": [
"arn:aws:lambda"
]
}
]
| no |
| [name](#input\_name) | The name of the trail. | `string` | n/a | yes |
| [tags](#input\_tags) | Tags to add to the AWS Customer Managed Key. | `map(any)` | `{}` | no |

## Outputs

| Name | Description |
|------|-------------|
| [bucket\_id](#output\_bucket\_id) | The id of the bucket. |

## Providers

| Name | Version |
|------|---------|
| [aws](#provider\_aws) | ~> 4.4 |

## Resources

- resource.aws_cloudtrail.main (main.tf#19)
- data source.aws_caller_identity.current (data.tf#1)
- data source.aws_iam_policy_document.main (data.tf#3)

# Examples
### Basic Example
```hcl
module "basic-example" {
source = "../../"

name = "cloudtrail"
}
```