File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
localstack/services/cloudformation/models Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 16
16
)
17
17
from localstack .services .cloudformation .service_models import GenericBaseModel
18
18
from localstack .services .iam .provider import SERVICE_LINKED_ROLE_PATH_PREFIX
19
- from localstack .services .lambda_ .legacy .lambda_api import IAM_POLICY_VERSION
20
19
from localstack .utils .aws import arns
21
20
from localstack .utils .common import ensure_list
22
21
from localstack .utils .functions import call_safe
23
22
24
23
LOG = logging .getLogger (__name__ )
25
24
25
+ DEFAULT_IAM_POLICY_VERSION = "2012-10-17"
26
+
26
27
27
28
class IAMManagedPolicy (GenericBaseModel ):
28
29
@staticmethod
@@ -363,7 +364,7 @@ def _post_create(
363
364
doc = dict (policy ["PolicyDocument" ])
364
365
doc = remove_none_values (doc )
365
366
366
- doc ["Version" ] = doc .get ("Version" ) or IAM_POLICY_VERSION
367
+ doc ["Version" ] = doc .get ("Version" ) or DEFAULT_IAM_POLICY_VERSION
367
368
statements = ensure_list (doc ["Statement" ])
368
369
for statement in statements :
369
370
if isinstance (statement .get ("Resource" ), list ):
You can’t perform that action at this time.
0 commit comments