Skip to content

Commit

Permalink
Update main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
easyawslearn authored Jul 31, 2022
1 parent 8a7e932 commit 65d0164
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
data "template_file" "kms_policy" {
template = "${file("${path.module}/kms_policy.json.tpl")}"
template = "${file("${kms_policy.json.tpl")}"
vars {
account_id = "${var.account_id}"
Expand All @@ -9,3 +9,10 @@ data "template_file" "kms_policy" {
resource "aws_kms_key" "key" {
policy = "${data.template_file.kms_policy.rendered}"
}
resource "aws_cloudwatch_log_group" "yada" {
name = "vijay"
kms_key_id = aws_kms_key.key.arn
}

0 comments on commit 65d0164

Please sign in to comment.