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.
- Host: GitHub
- URL: https://github.com/geekcell/terraform-aws-cloudtrail
- Owner: geekcell
- License: apache-2.0
- Created: 2023-02-08T15:47:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-28T08:09:18.000Z (almost 3 years ago)
- Last Synced: 2025-03-01T18:48:52.027Z (over 1 year ago)
- Topics: audit, aws, cloudtrail, terraform, terraform-module
- Language: HCL
- Homepage: https://www.geekcell.io
- Size: 26.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.geekcell.io/)
### Code Quality
[](https://github.com/geekcell/terraform-aws-cloudtrail/blob/master/LICENSE)
[](https://github.com/geekcell/terraform-aws-cloudtrail/releases)
[](https://github.com/geekcell/terraform-aws-cloudtrail/actions/workflows/release.yaml)
[](https://github.com/geekcell/terraform-aws-cloudtrail/actions/workflows/validate.yaml)
[](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"
}
```