-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from trussworks/mk-refactor
Refactor module to use IAM policy document instead of JSON templating
- Loading branch information
Showing
33 changed files
with
785 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,6 @@ variable "force_destroy" { | |
type = bool | ||
} | ||
|
||
variable "alb_logs_prefixes" { | ||
type = list(string) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
module "aws_logs" { | ||
source = "../../" | ||
s3_bucket_name = var.test_name | ||
region = var.region | ||
force_destroy = var.force_destroy | ||
source = "../../" | ||
|
||
s3_bucket_name = var.test_name | ||
region = var.region | ||
force_destroy = var.force_destroy | ||
cloudtrail_logs_prefix = var.cloudtrail_logs_prefix | ||
|
||
default_allow = false | ||
allow_cloudtrail = true | ||
} | ||
|
||
module "aws_cloudtrail" { | ||
source = "trussworks/cloudtrail/aws" | ||
version = "~> 2" | ||
source = "trussworks/cloudtrail/aws" | ||
version = "~> 2" | ||
|
||
s3_bucket_name = module.aws_logs.aws_logs_bucket | ||
cloudwatch_log_group_name = var.test_name | ||
s3_key_prefix = var.cloudtrail_logs_prefix | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,7 @@ variable "region" { | |
variable "force_destroy" { | ||
type = bool | ||
} | ||
|
||
variable "cloudtrail_logs_prefix" { | ||
type = string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
module "aws_logs" { | ||
source = "../../" | ||
source = "../../" | ||
|
||
s3_bucket_name = var.test_name | ||
region = var.region | ||
allow_config = "true" | ||
config_logs_prefix = "config" | ||
force_destroy = var.force_destroy | ||
allow_config = true | ||
default_allow = false | ||
config_logs_prefix = var.config_logs_prefix | ||
|
||
force_destroy = var.force_destroy | ||
} | ||
|
||
module "config" { | ||
source = "trussworks/config/aws" | ||
version = "~> 2" | ||
source = "trussworks/config/aws" | ||
version = "~> 2" | ||
|
||
config_name = var.test_name | ||
config_logs_bucket = module.aws_logs.aws_logs_bucket | ||
config_logs_prefix = "config" | ||
config_logs_prefix = var.config_logs_prefix | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,6 @@ variable "force_destroy" { | |
type = bool | ||
} | ||
|
||
variable "config_logs_prefix" { | ||
type = string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,6 @@ variable "force_destroy" { | |
type = bool | ||
} | ||
|
||
variable "elb_logs_prefix" { | ||
type = string | ||
} |
Oops, something went wrong.