From ac42a576490b751d0b6aa40cda2d6b8af8d17bdc Mon Sep 17 00:00:00 2001 From: Johan Steenhoven Date: Tue, 17 Dec 2024 10:27:26 +0100 Subject: [PATCH] Set provider for aws_securityhub_finding_aggregator --- security_hub.tf | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/security_hub.tf b/security_hub.tf index ac1f512..f935bd3 100644 --- a/security_hub.tf +++ b/security_hub.tf @@ -1,10 +1,4 @@ // AWS Security Hub - Management account configuration and enrollment -locals { - security_configuration_type = ( - var.aws_security_hub.organization_configuration_type == "CENTRAL" ? "NONE" : - (var.aws_security_hub.auto_enable_default_standards ? "DEFAULT" : "NONE") - ) -} resource "aws_securityhub_organization_admin_account" "default" { admin_account_id = data.aws_caller_identity.audit.account_id @@ -145,6 +139,8 @@ resource "aws_securityhub_standards_subscription" "logging" { } resource "aws_securityhub_finding_aggregator" "default" { + provider = aws.audit + linking_mode = var.aws_security_hub.aggregator_linking_mode specified_regions = var.aws_security_hub.aggregator_specified_regions