classmethod / gradle-aws-plugin

Gradle plugin to manage Amazon Web Services
276 stars 131 forks source link

configure events/triggers in Lambdas? #163

Open rvanderwerf opened 5 years ago

rvanderwerf commented 5 years ago

Hi I'd like a way to save manual intervention so users of don't have to use cloudformation - I want to be able to enable the alexa trigger (or any really) as part of the configuration upload to lambda.. take for example this template from lambda:

AWSTemplateFormatVersion: '2010-09-09' Transform: 'AWS::Serverless-2016-10-31' Description: An AWS Serverless Specification template describing your function. Resources: helloworldalexa: Type: 'AWS::Serverless::Function' Properties: Handler: 'example.HelloWorldAlexaFunction::hello' Runtime: java8 CodeUri: . Description: '' MemorySize: 256 Timeout: 60 Role: 'arn:aws:iam::XXXXXXXXX:role/lambda_basic_execution' Events: AlexaSkillEvent: Type: AlexaSkill

Currently I have to log into the console after upload/deploy and set this manually.

blundell commented 4 years ago

+1 looking how to add a trigger to the configuration when creating a lambda with this plugin