Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

Terraform module for AWS Cloudtrail
https://github.com/silinternational/terraform-aws-cloudtrail

Last synced: about 1 month ago
JSON representation

Terraform module for AWS Cloudtrail

Awesome Lists containing this project

README

        

# AWS Cloudtrail module
This module is used to set up CloudTrail logging for your AWS account.

## What this does

- Create S3 bucket for CloudTrail logs
- Create IAM user with read-only access to CloudTrail S3 bucket
- (Optional:) Create an Access Key and Secret for that IAM user
- Enable CloudTrail logging

## Required Inputs

- `s3_bucket_name` - The name for the S3 bucket where your CloudTrail logs will be stored

## Optional Inputs

- `cloudtrail_name` - The name for your Trail in AWS CloudTrail. Default: `"aws-account-cloudtrail"`
- `is_multi_region_trail` - Whether the trail is created in the current region or in all regions. Default: `false`
- `create_access_key` - Whether to create an Access Key/Secret for the created IAM user. Default: `false`

## Outputs

- `s3_access_key_id` - The Access Key ID for the IAM user that has access to the S3 bucket, if requested.
- `s3_access_key_secret` - The Access Key Secret for the IAM user that has access to the S3 bucket, if requested.