Comments (3)
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.
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.
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)
- Error: The template contains unsupported resource types. [AWS::Lambda::Url] HOT 3
- AWS::EC2::SecurityGroup - SecurityGroupIngress (and Egress) display errors in VSCode when using !Select and !FindInMap for CidrIp and VpcId HOT 2
- Cannot publish app with SSMParameterWithSlashPrefixReadPolicy policy HOT 1
- AutoPublishAlias not updating version when using FindInMap function in CodeUri.Key HOT 4
- GraphQL visibility private HOT 5
- Bug: AWS SAM tag value on AWS::Serverless::Function empty when value is False HOT 4
- Feature Request: Add SQS Redrive option to SNS event HOT 3
- Set Visibility timeout of the SQS with reference to the timeout of the function HOT 1
- `AWS::Serverless::Api` creates stage named `Stage` instead of requested stage name HOT 6
- "Invalid OpenAPI input" when OpenAPI set to `3.1.0` HOT 4
- AWS SAM Connector Write needs PutObjectTagging HOT 2
- Setting the runtime of a function to nodejs20.x causes sam validate to fail. HOT 2
- AWS::Serverless::Api - setting "OpenApiVersion" causes "Stage" deployment to be skipped - why? HOT 6
- [Test] GitHub Action automatic comments on GitHub closed Issue HOT 1
- AlwaysDeploy does not include GatewayResponse updates HOT 7
- Please explain how to version AWS::Serverless::Function artifacts cleanly HOT 11
- Bug: AWS::Serverless::Function Policies partly not applied HOT 8
- Cors error from SAM template and Auth enabled. HOT 3
- VSCode SAM Schema Validation Error with !Ref in Conditions Section HOT 7
- Bug: Creates unnecessary AWSLambdaVPCAccessExecutionRole role HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-application-model.