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

feat(python): Decoupled IAM Role and Lambda example #883

Closed
1 of 2 tasks
DenysGonzaga opened this issue Jul 9, 2023 · 3 comments
Closed
1 of 2 tasks

feat(python): Decoupled IAM Role and Lambda example #883

DenysGonzaga opened this issue Jul 9, 2023 · 3 comments
Labels
effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. language/python Related to Python examples

Comments

@DenysGonzaga
Copy link
Contributor

DenysGonzaga commented Jul 9, 2023

Describe the feature

A CDK/python example how to create a Lambda + Docker with a decoupled IAM Role.

Use Case

On these days, I had a problem when I needed to implement CDK/Python, lambda (dockerfunction) and CDK-nag. Using AWS/Security/DSR with default Nag configuration, it require a lambda with a custom IAM role (not that created by cdk) otherwise I'll get an error.

Proposed Solution

I already developed a simple example how to create a IAM role / attach it to a lambda. As I would not able to find any code (using Python) I thought that could be a great example to add.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Language

Python

@DenysGonzaga DenysGonzaga added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Jul 9, 2023
@DenysGonzaga DenysGonzaga changed the title (short issue description) feat(python): Decoupled IAM Role and Lambda example Jul 9, 2023
@ericzbeard ericzbeard added effort/small Small work item – less than a day of effort language/python Related to Python examples and removed needs-triage This issue or PR still needs to be triaged. labels Jul 13, 2023
@ericzbeard
Copy link
Contributor

Sounds like a good idea, dealing with cdk-nag warnings is a common requirement. Would be good to have examples of handling the security issues, and also suppressing ones that are false positives or not applicable. Nag suppressions can be tricky.

@DenysGonzaga
Copy link
Contributor Author

Great, I'll prepare a fork/pr for that

@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. language/python Related to Python examples
Projects
None yet
Development

No branches or pull requests

3 participants