From 462bb9ed41e2b39aacc0070be107e46c8a4397d4 Mon Sep 17 00:00:00 2001 From: Viren Nadkarni Date: Tue, 28 May 2024 15:03:49 +0530 Subject: [PATCH] IAM: Retain region attribute within the Policy object --- moto/iam/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/moto/iam/models.py b/moto/iam/models.py index 868e30797a8b..1820e7e5aff5 100644 --- a/moto/iam/models.py +++ b/moto/iam/models.py @@ -174,6 +174,7 @@ def __init__( ): self.name = name self.account_id = account_id + self.region = region self.attachment_count = 0 self.description = description or "" self.id = random_policy_id()