Skip to content

Feature request: AWS Config Rule event data class #1667

Closed

Description

@ctacka

Use case

Lambda functions could be used by AWS Config Custom Rules
AWS Config Event (one of 3 types) will be passed as event.

Solution/User Experience

It would be nice to have data class to work with AWS Config Rule event in the same manner, as we are working with SQS, SNS, etc.

Alternative solutions

No response

Acknowledgment

Activity

  1. added
    feature-request
    triage
    on Oct 28, 2022
  2. boring-cyborg commented on Oct 28, 2022

    @boring-cyborg

    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

  3. added
    need-customer-feedback
    and removed
    triage
    on Nov 14, 2022
  4. heitorlessa commented on Nov 14, 2022

    @heitorlessa
    Contributor

    @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!

  5. added
    good first issue
    help wanted
    on Nov 14, 2022
  6. pcolazurdo commented on Nov 15, 2022

    @pcolazurdo

    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.

  7. ran-isenberg commented on Nov 18, 2022

    @ran-isenberg
    Contributor

    +1 for Parser support too. Once there's a dataclass example, the parser can be implemented easily

  8. gdenn commented on Mar 8, 2023

    @gdenn

    @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.

  9. leandrodamascena commented on Apr 12, 2023

    @leandrodamascena
    Contributor

    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.

  10. added
    event_sources
    and removed
    good first issue
    help wanted
    need-customer-feedback
    on Apr 24, 2023
  11. leandrodamascena commented on Apr 27, 2023

    @leandrodamascena
    Contributor

    Starting to add this feature.

  12. github-actions commented on Jun 15, 2023

    @github-actions
    Contributor

    ⚠️COMMENT VISIBILITY WARNING⚠️

    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.

  13. added
    pending-release
    on Jun 15, 2023
  14. github-actions commented on Jun 16, 2023

    @github-actions
    Contributor

    This is now released under 2.17.0 version!

  15. removed
    pending-release
    on Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

event_sourcesfeature-request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions