Skip to content

Commit

Permalink
Adds capability to set the s3_key_prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
cahnk committed Aug 22, 2022
1 parent fca3ba0 commit aac3d02
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 6.1.0
current_version = 6.2.0
commit = True
message = Bumps version to {new_version}
tag = False
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

### 6.2.0

**Released**: 2022.08.22

**Commit Delta**: [Change from 6.0.0 release](https://github.com/plus3it/terraform-aws-tardigrade-cloudtrail/compare/6.1.0...6.0.0)

**Summary**:

* Adds capabilty to set the s3_bucket_prefex

### 6.1.0

**Released**: 2022.08.18
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ AWS_PROFILE=xxx make terraform/pytest PYTEST_ARGS="-v --nomock"
| <a name="input_kms_key_alias"></a> [kms\_key\_alias](#input\_kms\_key\_alias) | (Optional) The display name of the alias | `string` | `"terraform-cloudtrail-kms-key"` | no |
| <a name="input_kms_key_id"></a> [kms\_key\_id](#input\_kms\_key\_id) | (Optional) ARN of the kms key used to encrypt the CloudTrail logs. | `string` | `null` | no |
| <a name="input_retention_in_days"></a> [retention\_in\_days](#input\_retention\_in\_days) | (Optional) Specifies the number of days to retain log events in the log group. Only works if module creates the log group | `number` | `7` | no |
| <a name="input_s3_key_prefix"></a> [s3\_key\_prefix](#input\_s3\_key\_prefix) | S3 key prefix that follows the name of the bucket you have designated for log file delivery | `string` | `null` | no |
| <a name="input_tags"></a> [tags](#input\_tags) | A map of tags to add to the cloudtrail resource | `map(string)` | `{}` | no |
| <a name="input_use_cloud_watch_logs"></a> [use\_cloud\_watch\_logs](#input\_use\_cloud\_watch\_logs) | Specifies whether to use a CloudWatch log group for this trail | `bool` | `true` | no |

Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ module "kms" {
resource "aws_cloudtrail" "this" {
name = var.cloudtrail_name
s3_bucket_name = var.cloudtrail_bucket
s3_key_prefix = var.s3_key_prefix
enable_log_file_validation = var.enable_log_file_validation
enable_logging = var.enable_logging
include_global_service_events = var.include_global_service_events
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ variable "cloudtrail_bucket" {
default = null
}

variable "s3_key_prefix" {
description = "S3 key prefix that follows the name of the bucket you have designated for log file delivery"
type = string
default = null
}

variable "use_cloud_watch_logs" {
description = "Specifies whether to use a CloudWatch log group for this trail"
type = bool
Expand Down

0 comments on commit aac3d02

Please sign in to comment.