IAM Managed Policy #3112
Labels
@aws-cdk/aws-iam
Related to AWS Identity and Access Management
duplicate
This issue is a duplicate.
guidance
Question that needs advice or information.
language/python
Related to Python bindings
I'm submitting a ...
What is the current behavior?
In python, I have not found any way to create a Managed Policy and attach to a role. I see a ManagedPolicy class that seems to be a place holder.
The Role.add_managed_policy() method takes a IManagedPolicy and no documentation on how to create an instance of it.
Finally, it looks like the low level Resource CfnManagedPolicy may work, but, it cannot be easily added to Constructs such as Lambda
What is the expected behavior (or behavior of feature suggested)?
There needs to be some way to create a ManagedPolicy
What is the motivation / use case for changing the behavior or adding this feature?
I want to be able to create a Lambda function in CDK and attach a new role on it. The role should contain a newly created Managed Policy
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. associated pull-request, stackoverflow, gitter, etc)
The text was updated successfully, but these errors were encountered: