Skip to content

Commit b8a7998

Browse files
author
Sohan
committed
update
1 parent 6dcf156 commit b8a7998

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ data "aws_iam_policy_document" "default" {
171171
| is_guardduty_member | Whether the account is a member account | bool | `false` | no |
172172
| key_deletion_window_in_days | Duration in days after which the key is deleted after destruction of the resource, must be between 7 and 30 days. Defaults to 30 days. | number | `10` | no |
173173
| label_order | Label order, e.g. `name`,`application`. | list | `<list>` | no |
174+
| managedby | ManagedBy, eg 'CloudDrove' or 'AnmolNagpal'. | string | `AnmolNagpal` | no |
174175
| member_list | The list of member accounts to be added. Each member list need to have values of account_id, member_email and invite boolean | object | `<list>` | no |
175176
| name | Name (e.g. `app` or `cluster`). | string | `` | no |
176177
| s3_bucket_name | The name of the S3 bucket which will store configuration snapshots. | string | - | yes |

main.tf

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
#Description : Terraform module to provision an AWS CloudTrail with encrypted S3 bucket.
44
# This bucket is used to store CloudTrail logs.
55
module "cloudtrail" {
6-
source = "git::https://github.com/clouddrove/terraform-aws-cloudtrail-baseline.git?ref=tags/0.12.6"
6+
source = "git::https://github.com/clouddrove/terraform-aws-cloudtrail-baseline.git?ref=tags/0.12.10"
77
name = "trails"
88
application = var.application
99
environment = var.environment
10+
managedby = var.managedby
1011
label_order = var.label_order
1112
enabled = var.enabled && var.cloudtrail_enabled
1213
iam_role_name = "CloudTrail-CloudWatch-Delivery-Role"
@@ -28,10 +29,11 @@ module "cloudtrail" {
2829
#Module : ALARM BASELINE
2930
#Description : Provides a CloudWatch Metric Alarm resource.
3031
module "alarm_baseline" {
31-
source = "git::https://github.com/clouddrove/terraform-aws-alarm-baseline.git?ref=tags/0.12.1"
32+
source = "git::https://github.com/clouddrove/terraform-aws-alarm-baseline.git?ref=tags/0.12.2"
3233
name = "alarm"
3334
application = var.application
3435
environment = var.environment
36+
managedby = var.managedby
3537
label_order = var.label_order
3638

3739
enabled = var.enabled && var.alarm_enabled
@@ -46,11 +48,12 @@ module "alarm_baseline" {
4648
#Module : CONFIG BASELINE
4749
#Description : Manages status (recording / stopped) of an AWS Config Configuration Recorder.
4850
module "config-baseline" {
49-
source = "git::https://github.com/clouddrove/terraform-aws-config-baseline.git?ref=tags/0.12.1"
51+
source = "git::https://github.com/clouddrove/terraform-aws-config-baseline.git?ref=tags/0.12.2"
5052
name = "config"
5153
application = var.application
5254
environment = var.environment
5355
label_order = var.label_order
56+
managedby = var.managedby
5457
enabled = var.enabled && var.config_enabled
5558
config_s3_bucket_name = var.config_s3_bucket_name
5659
variables = {
@@ -65,6 +68,7 @@ module "guardduty" {
6568
name = "guardduty"
6669
application = var.application
6770
environment = var.environment
71+
managedby = var.managedby
6872
label_order = var.label_order
6973
guardduty_enable = var.enabled && var.guardduty_enable
7074
ipset_format = "TXT"

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ variable "label_order" {
2424
description = "Label order, e.g. `name`,`application`."
2525
}
2626

27+
variable "managedby" {
28+
type = string
29+
default = "AnmolNagpal"
30+
description = "ManagedBy, eg 'CloudDrove' or 'AnmolNagpal'."
31+
}
32+
2733
variable "attributes" {
2834
type = list
2935
default = []

0 commit comments

Comments
 (0)