serverless-application-model icon indicating copy to clipboard operation
serverless-application-model copied to clipboard

Support CodePipeline Triggers

Open tim-white87 opened this issue 5 years ago • 4 comments

Description: Feature request: I am trying to setup a SAM app and I would like my database microservice that runs migration and seeders to be triggered via CodePipeline. Right now, which CodePipeline supports the triggering of lambdas, SAM does not support a CodePipeline event source.

Steps to reproduce the issue:

  1. Setup template with an Event
  2. Add event type of "CodePipeline"

Observed result: Unsupported

Expected result: AWS::Serverless::Function templates would support all of the supported event types that lambda does.

Thanks!

tim-white87 avatar Jan 07 '20 18:01 tim-white87

Thanks for the feature request! We have passed this along to our product team for possible prioritization. Please +1 on the feature to help with prioritization.

praneetap avatar Jan 08 '20 19:01 praneetap

I have something similar to this working, but I fail to understand how SAM could make this. What I have is a CodePipeline with an action of "Invoke Lambda" that triggers a migration Lambda for me. The part I fail to understand is: How would a Lambda event have a CodePipeline as source without the Pipeline itself explicitly having a Invocation step?

deleugpn avatar Jan 09 '20 16:01 deleugpn

@deleugpn I believe the idea is to have a CodePipeline event on the Severless::Function that sets up the necessary permissions for CodePipeline to be able to call the Serverless::Function resource. The actual CodePipeline configuration would not be managed by SAM (the CodePipeline resource can be in the same template, SAM just will not modify it).

keetonian avatar Jan 15 '20 18:01 keetonian

@praneetap, is there a timeline for this feature request?

jeff1evesque avatar Oct 06 '20 20:10 jeff1evesque