Existing lambda function

I inherited a couple of AWS lambda functions from a former co-worker. The functions were built directly in the AWS Lambda online console. Both functions have file creation/edit event triggers for an S3 bucket. I’d like to convert both functions to one severless project so I can much more easily edit, test, and deploy to our staging and production versions of the functions. I’ve tried setting up a serverless.yml file to mimic what I see in the AWS Lambda console, but encounter issues when trying to deploy. The issues seem to focus on the s3 bucket trigger. Anyone know of resources I can go and read about converting existing AWS Lambda functions to a serverless project? Thanks.

Good Article for reference here:

I’d have a look at the section titled:

The Default IAM Role

It’ll probably come down to getting the correct “Allow” actions for the Lambdas.

Also that the S3 Cloudwatch or some other SNS events trigger the lambdas correctly and have the proper “lambda:Invoke” permissions in your template. something like this…

 - Effect: "Allow"
          Action: 
            - "lambda:InvokeFunction"
          Resource: "*"

Good Luck!