Skip to content

Commit

Permalink
revision
Browse files Browse the repository at this point in the history
  • Loading branch information
johnricords committed May 25, 2023
1 parent b8e0d68 commit 23d3bcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module "subscriptions" {
# Manage Control status
module "standards_control" {
source = "./modules/standards_control"
for_each = { for control in var.standards_control : control.standards_control_arn => control }
for_each = { for control in var.standards_control : control.name => control }

standards_control_arn = each.key
control_status = each.value.control_status
Expand Down
1 change: 1 addition & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ variable "action_targets" {
variable "standards_control" {
description = "List of Security Hub standards to enable or disable in current region."
type = list(object({
name = string
standards_control_arn = string
control_status = string
disabled_reason = string
Expand Down

0 comments on commit 23d3bcd

Please sign in to comment.