From 102d9f271788250efef6053206bb27109a518044 Mon Sep 17 00:00:00 2001 From: Jakub Jindra Date: Thu, 24 Oct 2024 21:08:50 +0200 Subject: [PATCH] chore(kms): pass key_id instead of arn to key_id parameter of aws_kms_key_policy to eliminate change (#18) --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index ac7be3c..5e38228 100644 --- a/main.tf +++ b/main.tf @@ -91,7 +91,7 @@ resource "aws_kms_alias" "this" { resource "aws_kms_key_policy" "this" { count = var.encrypt_with_kms ? 1 : 0 - key_id = aws_kms_key.this[0].arn + key_id = aws_kms_key.this[0].key_id policy = data.aws_iam_policy_document.kms_key_policy.json }