We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8152f64 commit 12f5e13Copy full SHA for 12f5e13
terraform/infrastructure/modules/firehose/iam_firehose.tf
@@ -44,9 +44,7 @@ data "aws_iam_policy_document" "firehose" {
44
"kms:Decrypt",
45
]
46
47
- resources = [
48
- aws_kms_key.firehose.arn,
49
- ]
+ resources = local.iam_kms_resources
50
}
51
statement {
52
actions = [
terraform/infrastructure/modules/firehose/locals.tf
@@ -40,4 +40,11 @@ locals {
40
firehose_reporting_stream_arn = var.reporting_infra_toggle ? aws_kinesis_firehose_delivery_stream.reporting_stream[0].arn : null
41
42
43
+ iam_kms_resources = var.reporting_infra_toggle ? [
+ aws_kms_key.firehose.arn,
+ aws_kms_key.glue.arn,
+ ] : [
+ ]
+
0 commit comments