Git Product home page Git Product logo

Comments (3)

dinvlad avatar dinvlad commented on May 23, 2024

It seems that AWS has just added CloudTrail support for CodeCommit: https://forums.aws.amazon.com/ann.jspa?annID=4344.
With that, it should be possible to define the event as a CloudWatch alarm on a CloudTrail event for CodeCommit. I'm going to check if that it works.

Alternatively, it could still be done through SNS.

But it would still be nicer to enable direct triggering, since CodeCommit trigger is explicitly supported by Lambda.

from serverless-application-model.

dinvlad avatar dinvlad commented on May 23, 2024

So to solve this problem backwards, one can also define a CodeCommit resource with a trigger that references the function's ARN (in the same template), and keep the function without an Event Source (which is not required).

That being said, it may still be good to add support for CodeCommit Event Source, especially for cases where people have an existing repository (created outside of the context of that template), and then want to link this function to that repo using the well-known and persistent repo URL. Function's ARN may change, but that would not affect this link as long as repo's URL stays the same.

from serverless-application-model.

dinvlad avatar dinvlad commented on May 23, 2024

Closing in favor of using SNS event source, which provides link persistence but also enables subscribing multiple repos to the same function. Feel free to re-open if there's still interest in direct link.

from serverless-application-model.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.