-
Notifications
You must be signed in to change notification settings - Fork 4.5k
IAM: better support for managed policies #621
Copy link
Copy link
Closed
Description
role.attachManagedPolicy() has a poor signature. It accepts any, but in fact it should accept only Arns (until we have modeled ManagedPolicies)
We had a user try to put a PolicyStatement in there, which led to the following error:
Exception in thread "main" software.amazon.jsii.JsiiException: While synthesizing hello-cdk/source-import-queue-reader/Resource: Trying to resolve() a Construct at /managedPolicyArns/0/Resource�
While synthesizing hello-cdk/source-import-queue-reader/Resource: Trying to resolve() a Construct at /managedPolicyArns/0/Resource�
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels