From 409570a3d4656c1e9cea965635cd6dac14ba5cb8 Mon Sep 17 00:00:00 2001 From: dli-spoton <80794259+dli-spoton@users.noreply.github.com> Date: Tue, 14 Oct 2025 14:23:31 -0700 Subject: [PATCH] Replace ResourceOrgID with SourceOrgID I think these conditions are all intended to check the source org ID, not the org ID of the resource. --- main.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.tf b/main.tf index 989dea1..da55a73 100644 --- a/main.tf +++ b/main.tf @@ -728,7 +728,7 @@ data "aws_iam_policy_document" "lb_log_delivery" { content { test = "StringEquals" - variable = "aws:ResourceOrgID" + variable = "aws:SourceOrgID" values = var.lb_log_delivery_policy_source_organizations } } @@ -758,7 +758,7 @@ data "aws_iam_policy_document" "lb_log_delivery" { content { test = "StringEquals" - variable = "aws:ResourceOrgID" + variable = "aws:SourceOrgID" values = var.lb_log_delivery_policy_source_organizations } } @@ -812,7 +812,7 @@ data "aws_iam_policy_document" "access_log_delivery" { content { test = "StringEquals" - variable = "aws:ResourceOrgID" + variable = "aws:SourceOrgID" values = var.access_log_delivery_policy_source_organizations } } @@ -842,7 +842,7 @@ data "aws_iam_policy_document" "access_log_delivery" { content { test = "StringEquals" - variable = "aws:ResourceOrgID" + variable = "aws:SourceOrgID" values = var.access_log_delivery_policy_source_organizations } }