You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: AWS Config Rule event data class #1667
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out the #python channel on our AWS Lambda Powertools Discord: Invite link
@pcolazurdo you have tons of experience with Config - are there any known gotchas with events from Config? e.g., structure changes slightly when X is configured
@ctacka thank you for the feature request! Besides the data class, are there any repetitive task that we could make it easier as part of this new data class?
Added the correct labels to watch for +1 to help us prioritize.
As mentioned by @ctacka there are tree types of Config Rules events: Evaluations Triggered by Configuration Changes, Evaluations Triggered by Oversized Configuration Changes and Evaluations Triggered by Periodic Frequency. The three events have a lot of common fields, and they are around 10 (as of today) in total.
Two of these fields encode most of the important information about the rule evaluation. They come encoded as JSON string and they don't have a well defined schema as they depend on the rule itself.
IMHO, the added value of these three new data classes will be limited. Considering the effort to maintain this feature over time, I would try to capture addition additional interest on this feature before adding it into the project.
As the AWS config Rule Development Kit (RDK) is the tool specifically designed to help create Config Rules, I would try to consider if that is not a better place to suggest improvements around the experience of Config Rules development.
@pcolazurdo@heitorlessa I am new to the community. Any chance I could work on this issue? I am familiar with the AWS Config basics but I would need some guidance for this.
Hi @gdenn! How are you? Thank you for your interest in helping us create this new feature, we always love it when the community gets involved to contribute to this project. Sorry for the late reply, but March was a busy month and we are revisiting any issues to update and move forward.
Powertools is a project that aims to help customers adopt serverless quickly and following best practices, and one of the utilities we have to fulfill this mission is the "Event Source Data Class". This utility creates classes based on the services that can invoke the lambda (and there are many), these classes help to make the code cleaner and help the developer to access the objects/properties of that class more easily. Look at this example where a developer can use a specific event source class for S3 event. With just a few lines of code, the developer can access the properties of an S3 event that invokes Lambda.
To add a new EventSource Class you need to create a class and a test for that new class. You can check this PR where we added a class for KinesisFirehoseEvent.
I'm still not sure if we'll be adding this new EventSource in upcoming releases, but if so, are you still available to do this? We can work together and I can help you with some guidance.
Activity
boring-cyborg commentedon Oct 28, 2022
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out the #python channel on our AWS Lambda Powertools Discord: Invite link
heitorlessa commentedon Nov 14, 2022
@pcolazurdo you have tons of experience with Config - are there any known gotchas with events from Config? e.g., structure changes slightly when X is configured
@ctacka thank you for the feature request! Besides the data class, are there any repetitive task that we could make it easier as part of this new data class?
Added the correct labels to watch for +1 to help us prioritize.
Thank you!
pcolazurdo commentedon Nov 15, 2022
As mentioned by @ctacka there are tree types of Config Rules events: Evaluations Triggered by Configuration Changes, Evaluations Triggered by Oversized Configuration Changes and Evaluations Triggered by Periodic Frequency. The three events have a lot of common fields, and they are around 10 (as of today) in total.
Two of these fields encode most of the important information about the rule evaluation. They come encoded as JSON string and they don't have a well defined schema as they depend on the rule itself.
IMHO, the added value of these three new data classes will be limited. Considering the effort to maintain this feature over time, I would try to capture addition additional interest on this feature before adding it into the project.
As the AWS config Rule Development Kit (RDK) is the tool specifically designed to help create Config Rules, I would try to consider if that is not a better place to suggest improvements around the experience of Config Rules development.
ran-isenberg commentedon Nov 18, 2022
+1 for Parser support too. Once there's a dataclass example, the parser can be implemented easily
gdenn commentedon Mar 8, 2023
@pcolazurdo @heitorlessa I am new to the community. Any chance I could work on this issue? I am familiar with the AWS Config basics but I would need some guidance for this.
leandrodamascena commentedon Apr 12, 2023
Hi @gdenn! How are you? Thank you for your interest in helping us create this new feature, we always love it when the community gets involved to contribute to this project. Sorry for the late reply, but March was a busy month and we are revisiting any issues to update and move forward.
Powertools is a project that aims to help customers adopt serverless quickly and following best practices, and one of the utilities we have to fulfill this mission is the "Event Source Data Class". This utility creates classes based on the services that can invoke the lambda (and there are many), these classes help to make the code cleaner and help the developer to access the objects/properties of that class more easily. Look at this example where a developer can use a specific event source class for S3 event. With just a few lines of code, the developer can access the properties of an S3 event that invokes Lambda.
To add a new EventSource Class you need to create a class and a test for that new class. You can check this PR where we added a class for KinesisFirehoseEvent.
I'm still not sure if we'll be adding this new EventSource in upcoming releases, but if so, are you still available to do this? We can work together and I can help you with some guidance.
Thank you so much.
leandrodamascena commentedon Apr 27, 2023
Starting to add this feature.
github-actions commentedon Jun 15, 2023
This issue is now closed. Please be mindful that future comments 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.
github-actions commentedon Jun 16, 2023
This is now released under 2.17.0 version!