Skip to content

Commit c6da6f5

Browse files
committed
allow setting of customId on IAM Policies
1 parent 186ecf0 commit c6da6f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

localstack-core/localstack/services/iam/iam_patches.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ def policy__init__(
9595
):
9696
fn(self, name, account_id, region, default_version_id, description, document, **kwargs)
9797
self.document = document
98+
if "tags" in kwargs and TAG_KEY_CUSTOM_ID in kwargs["tags"]:
99+
self.id = kwargs["tags"][TAG_KEY_CUSTOM_ID]["Value"]
98100

99101
@patch(IAMBackend.create_role)
100102
def iam_backend_create_role(

0 commit comments

Comments
 (0)