Skip to content

Commit

Permalink
Set provider for aws_securityhub_finding_aggregator
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan Steenhoven authored and Johan Steenhoven committed Dec 17, 2024
1 parent aa028ba commit ac42a57
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions security_hub.tf
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit ac42a57

Please sign in to comment.