Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IAM Managed Policy #3112

Closed
1 of 5 tasks
sdole opened this issue Jun 27, 2019 · 4 comments
Closed
1 of 5 tasks

IAM Managed Policy #3112

sdole opened this issue Jun 27, 2019 · 4 comments
Assignees
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

Comments

@sdole
Copy link

sdole commented Jun 27, 2019

  • I'm submitting a ...

    • πŸͺ² bug report
    • πŸš€ feature request
    • πŸ“š construct library gap
    • ☎️ security issue or vulnerability => Please see policy
    • ❓ support request => Please see note at the top of this template.
  • 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:

    • CDK CLI Version: 0.36
    • Module Version: xx.xx.xx
    • OS: [all | Windows 10 | OSX Mojave | Ubuntu | etc... ]
    • Language: [all | TypeScript | Java | Python ]
  • 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)

@sdole sdole added the needs-triage This issue or PR still needs to be triaged. label Jun 27, 2019
@rix0rrr
Copy link
Contributor

rix0rrr commented Jun 28, 2019

@NGL321 NGL321 added guidance Question that needs advice or information. @aws-cdk/aws-iam Related to AWS Identity and Access Management language/python Related to Python bindings response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed needs-triage This issue or PR still needs to be triaged. labels Jul 1, 2019
@NGL321 NGL321 self-assigned this Jul 1, 2019
@NGL321
Copy link
Contributor

NGL321 commented Jul 1, 2019

Hi @sdole,

We currently do not support creating Customer Managed Policies in the CDK. This is a feature we plan to implement eventually.
This seems to be a part of a larger gap that is going to be tracked here: #3128. This feature in particular is logged here: #2974

If this answered your question, since there is a duplicate feature request, I will close this issue out.

Thanks for your patience!

@NGL321 NGL321 added closing-soon This issue will automatically close in 4 days unless further comments are made. duplicate This issue is a duplicate. labels Jul 1, 2019
@sdole
Copy link
Author

sdole commented Jul 2, 2019

That is totally fine and thanks. Is there a listing of gaps? Else, what could be an easy way to find gaps? I ask because I want to decide whether to promote this in our company or not. Thanks.

@sdole sdole closed this as completed Jul 2, 2019
@NGL321
Copy link
Contributor

NGL321 commented Jul 2, 2019

@sdole Thank you for asking! There is not presently a good way of listing gaps. However, I am making a concerted effort to go through all issues, new and old, to apply the "gap" label where relevant.
This would make a label-search of github issues that you could see all the construct library gaps (that is also distinct from the feature-request search).

@NGL321 NGL321 removed closing-soon This issue will automatically close in 4 days unless further comments are made. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. labels Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants