Skip to content

Commit c4fa754

Browse files
committed
NRL-1188 add index to instances where count is used
1 parent 4f3b00c commit c4fa754

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

terraform/infrastructure/locals.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ locals {
2929
public_domain = local.is_sandbox_env ? var.public_sandbox_domain : var.public_domain
3030

3131
# Logic / vars for reporting
32-
reporting_bucket_arn = local.is_dev_env ? data.aws_s3_bucket.source-data-bucket.arn : null
32+
reporting_bucket_arn = local.is_dev_env ? data.aws_s3_bucket.source-data-bucket[0].arn : null
3333

3434
# Logic / vars for splunk environment
3535
splunk_environment = local.is_sandbox_env ? "${var.account_name}sandbox" : var.account_name

terraform/infrastructure/modules/firehose/cloudwatch.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ resource "aws_cloudwatch_log_group" "firehose_reporting" {
1717
resource "aws_cloudwatch_log_stream" "firehose_reporting" {
1818
count = var.reporting_infra_toggle ? 1 : 0
1919
name = "${var.prefix}-firehose-reporting"
20-
log_group_name = aws_cloudwatch_log_group.firehose_reporting.name
20+
log_group_name = aws_cloudwatch_log_group.firehose_reporting[0].name
2121
}

terraform/infrastructure/modules/firehose/kinesis.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ resource "aws_kinesis_firehose_delivery_stream" "reporting_stream" {
7272

7373
cloudwatch_logging_options {
7474
enabled = true
75-
log_group_name = aws_cloudwatch_log_group.firehose_reporting.name
76-
log_stream_name = aws_cloudwatch_log_stream.firehose_reporting.name
75+
log_group_name = aws_cloudwatch_log_group.firehose_reporting[0].name
76+
log_stream_name = aws_cloudwatch_log_stream.firehose_reporting[0].name
7777
}
7878
}
7979
}

0 commit comments

Comments
 (0)