Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion terraform/account-wide-infrastructure/dev/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ variable "enable_powerbi_auto_push" {
variable "powerbi_gw_instance_type" {
type = string
description = "Type for PowerBI GW EC2 Instance"
default = "t2.micro"
default = "t2.medium"
}

variable "use_powerbi_gw_custom_ami" {
Expand Down
2 changes: 1 addition & 1 deletion terraform/account-wide-infrastructure/prod/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ variable "enable_powerbi_auto_push" {
variable "powerbi_gw_instance_type" {
type = string
description = "Type for PowerBI GW EC2 Instance"
default = "t2.micro"
default = "t2.medium"
}

variable "use_powerbi_gw_custom_ami" {
Expand Down
2 changes: 1 addition & 1 deletion terraform/account-wide-infrastructure/test/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ variable "enable_powerbi_auto_push" {
variable "powerbi_gw_instance_type" {
type = string
description = "Type for PowerBI GW EC2 Instance"
default = "t2.micro"
default = "t2.medium"
}

variable "use_powerbi_gw_custom_ami" {
Expand Down
4 changes: 2 additions & 2 deletions terraform/infrastructure/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ module "consumer__status" {
local.pointers_kms_read_write_arn,
local.auth_store_read_policy_arn
]
firehose_subscriptions = local.firehose_lambda_subscriptions
firehose_subscriptions = local.firehost_lambda_splunk_only_subscription
handler = "status.handler"
retention = var.log_retention_period
}
Expand Down Expand Up @@ -351,7 +351,7 @@ module "producer__status" {
local.pointers_kms_read_write_arn,
local.auth_store_read_policy_arn
]
firehose_subscriptions = local.firehose_lambda_subscriptions
firehose_subscriptions = local.firehost_lambda_splunk_only_subscription
handler = "status.handler"
retention = var.log_retention_period
}
13 changes: 10 additions & 3 deletions terraform/infrastructure/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,16 @@ locals {

reporting_bucket_arn = data.aws_s3_bucket.source-data-bucket.arn
reporting_kms_arn = data.aws_kms_key.glue.arn
firehose_lambda_subscriptions = var.use_shared_resources ? {
"splunk_subscription" : module.firehose__processor[0].firehose_subscription,
"reports_subscription" : module.firehose__processor[0].firehose_reporting_subscription
firehose_lambda_subscriptions = var.use_shared_resources ? (
var.enable_reporting ? {
"splunk_subscription" = module.firehose__processor[0].firehose_subscription,
"reports_subscription" = module.firehose__processor[0].firehose_reporting_subscription
} : {
"splunk_subscription" = module.firehose__processor[0].firehose_subscription
}
) : {}
firehost_lambda_splunk_only_subscription = var.use_shared_resources ? {
"splunk_subscription" : module.firehose__processor[0].firehose_subscription
} : {}
splunk_environment = local.is_sandbox_env ? "${var.account_name}sandbox" : var.account_name
splunk_index = "aws_recordlocator_${local.splunk_environment}"
Expand Down
Loading