Skip to content

Commit cf48ca5

Browse files
authored
Merge pull request #4 from aws-samples/encrypt_cwl
added kms to cwl
2 parents 12fb366 + bf76930 commit cf48ca5

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

cloudwatch.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
resource "aws_cloudwatch_log_group" "this" {
55
name = "/aws/codebuild/${var.name}"
66
retention_in_days = 30
7+
kms_key_id = var.kms_key
78
}
89

910
resource "aws_cloudwatch_event_rule" "this" {

outputs.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
output "bucket" {
22
value = aws_s3_bucket.this
33
}
4+
5+
output "cwl_group" {
6+
value = aws_cloudwatch_log_group.this
7+
}
8+
9+
output "codebuild_project" {
10+
value = aws_codebuild_project.this
11+
}

0 commit comments

Comments
 (0)