Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantanjunming committed Sep 5, 2023
1 parent 5579bff commit f61b523
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions modules/firehose/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ resource "aws_s3_bucket_public_access_block" "firehose_bucket_bucket_access" {
}

resource "aws_iam_role" "firehose_to_coralogix" {
tags = local.tags
name = "${var.firehose_stream}-firehose"
tags = local.tags
name = "${var.firehose_stream}-firehose"
assume_role_policy = jsonencode({
"Version" = "2012-10-17",
"Version" = "2012-10-17",
"Statement" = [
{
"Action" = "sts:AssumeRole",
"Action" = "sts:AssumeRole",
"Principal" = {
"Service" = "firehose.amazonaws.com"
},
Expand All @@ -94,9 +94,9 @@ resource "aws_iam_role" "firehose_to_coralogix" {
]
})
inline_policy {
name = "${var.firehose_stream}-firehose"
name = "${var.firehose_stream}-firehose"
policy = jsonencode({
"Version" = "2012-10-17",
"Version" = "2012-10-17",
"Statement" = [
{
"Effect" = "Allow",
Expand Down Expand Up @@ -149,9 +149,7 @@ resource "aws_kinesis_firehose_delivery_stream" "coralogix_stream_logs" {
count = var.logs_enable == true ? 1 : 0

dynamic "kinesis_source_configuration" {
for_each = var.source_type_logs == "KinesisStreamAsSource" && var.kinesis_stream_arn != null ? [
1
] : []
for_each = var.source_type_logs == "KinesisStreamAsSource" && var.kinesis_stream_arn != null ? [1] : []
content {
kinesis_stream_arn = var.kinesis_stream_arn
role_arn = aws_iam_role.firehose_to_coralogix.arn
Expand Down

0 comments on commit f61b523

Please sign in to comment.