forked from bridgecrewio/terragoat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kms.tf
21 lines (19 loc) · 763 Bytes
/
kms.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
resource "aws_kms_key" "logs_key" {
# key does not have rotation enabled
description = "${local.resource_prefix.value}-logs bucket key"
deletion_window_in_days = 7
tags = {
git_commit = "d68d2897add9bc2203a5ed0632a5cdd8ff8cefb0"
git_file = "terraform/aws/kms.tf"
git_last_modified_at = "2020-06-16 14:46:24"
git_last_modified_by = "nimrodkor@gmail.com"
git_modifiers = "nimrodkor"
git_org = "bridgecrewio"
git_repo = "terragoat"
yor_trace = "cd8fa2a7-4868-4cd1-993d-da4644808ce5"
}
}
resource "aws_kms_alias" "logs_key_alias" {
name = "alias/${local.resource_prefix.value}-logs-bucket-key"
target_key_id = "${aws_kms_key.logs_key.key_id}"
}