Skip to content

Commit

Permalink
* 2.5.6 -- 2024-03-08
Browse files Browse the repository at this point in the history
  - cloudtrail
    - add variable create_cloudtrail (default: true) to be used for the org cloudtrail old setup
  • Loading branch information
badra001 committed Mar 8, 2024
1 parent 4e4a447 commit cb72959
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,3 +350,7 @@
* 2.5.5 -- 2024-02-26
- cloudtrail
- add filter_path of cloudtrail/ for notification

* 2.5.6 -- 2024-03-08
- cloudtrail
- add variable create_cloudtrail (default: true) to be used for the org cloudtrail old setup
1 change: 1 addition & 0 deletions cloudtrail/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ No modules.
| <a name="input_additional_sqs_names"></a> [additional\_sqs\_names](#input\_additional\_sqs\_names) | List of additional SQS queues to create and subscribe to the SNS topic (if enabled) | `list(string)` | `[]` | no |
| <a name="input_cloudtrail_bucket_prefix"></a> [cloudtrail\_bucket\_prefix](#input\_cloudtrail\_bucket\_prefix) | Access log bucket prefix, to which the bucket name will be appended to make the target\_prefix | `string` | `"cloudtrail"` | no |
| <a name="input_component_tags"></a> [component\_tags](#input\_component\_tags) | Additional tags for Components (s3, kms, ddb) | `map(map(string))` | <pre>{<br> "ddb": {},<br> "kms": {},<br> "s3": {}<br>}</pre> | no |
| <a name="input_create_cloudtrail"></a> [create\_cloudtrail](#input\_create\_cloudtrail) | Flag to enable or disable creation of cloudtrail | `bool` | `true` | no |
| <a name="input_enable_cloudwatch_logs"></a> [enable\_cloudwatch\_logs](#input\_enable\_cloudwatch\_logs) | Enable CloudWatch Logs for this CloudTrail | `bool` | `true` | no |
| <a name="input_enable_organization"></a> [enable\_organization](#input\_enable\_organization) | Enable CloudTrail as an organization trail. This will only work in the organization master account | `bool` | `false` | no |
| <a name="input_enable_s3_sns"></a> [enable\_s3\_sns](#input\_enable\_s3\_sns) | Flag to enable or disable the creation of SNS for the Cloudtrail S3 bucket | `bool` | `false` | no |
Expand Down
1 change: 1 addition & 0 deletions cloudtrail/cloudtrail.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
resource "aws_cloudtrail" "this" {
count = var.create_cloudtrail ? 1 : 0
name = local.name
s3_bucket_name = aws_s3_bucket.this.id
s3_key_prefix = var.cloudtrail_bucket_prefix
Expand Down
6 changes: 6 additions & 0 deletions cloudtrail/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,9 @@ variable "enable_cloudwatch_logs" {
type = bool
default = true
}

variable "create_cloudtrail" {
description = "Flag to enable or disable creation of cloudtrail"
type = bool
default = true
}
2 changes: 1 addition & 1 deletion common/version.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locals {
_module_version = "2.5.5"
_module_version = "2.5.6"
}

0 comments on commit cb72959

Please sign in to comment.