From fde6e127ff7b6fe54ed5171e06c129cf35dfd10b 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 b052aa4aa7a1..41a10d09d69d 100644 --- a/moto/iam/models.py +++ b/moto/iam/models.py @@ -168,6 +168,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()