Skip to content

Commit 6c88652

Browse files
authored
Create main.tf
1 parent 811ad32 commit 6c88652

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

main.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
data "template_file" "kms_policy" {
2+
template = "${file("${path.module}/kms_policy.json.tpl")}"
3+
4+
vars {
5+
account_id = "${var.account_id}"
6+
}
7+
}
8+
9+
resource "aws_kms_key" "key" {
10+
policy = "${data.template_file.kms_policy.rendered}"
11+
}

0 commit comments

Comments
 (0)