-
Notifications
You must be signed in to change notification settings - Fork 8
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 #97 from eemperor/refactor
Removes create variable from module
- Loading branch information
Showing
13 changed files
with
25 additions
and
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
# CloudTrail | ||
output "cloudtrail_id" { | ||
description = "The name of the trail" | ||
value = join("", aws_cloudtrail.this.*.id) | ||
value = aws_cloudtrail.this.id | ||
} | ||
|
||
output "cloudtrail_home_region" { | ||
description = "The region in which the trail was created" | ||
value = join("", aws_cloudtrail.this.*.home_region) | ||
value = aws_cloudtrail.this.home_region | ||
} | ||
|
||
output "cloudtrail_arn" { | ||
description = "The Amazon Resource Name of the trail" | ||
value = join("", aws_cloudtrail.this.*.arn) | ||
value = aws_cloudtrail.this.arn | ||
} | ||
|
||
output "log_group" { | ||
description = "The CloudWatch log group object created when no previous log group is declared" | ||
value = length(aws_cloudwatch_log_group.this) > 0 ? aws_cloudwatch_log_group.this[0] : null | ||
value = local.create_log_group ? aws_cloudwatch_log_group.this[0] : null | ||
} | ||
|
||
output "kms_key_id" { | ||
description = "The KMS Key ARN used to encrypt the logs" | ||
value = length(aws_cloudtrail.this) > 0 ? aws_cloudtrail.this[0].kms_key_id : null | ||
value = aws_cloudtrail.this.kms_key_id | ||
} |
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 was deleted.
Oops, something went wrong.
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