I have some lambda functions that have been created before moving to AWS SAM. I would like to update my existing lambda function using AWS SAM. What would be the process of referencing the lambda function in AWS SAM. I have a lambda function already created called: hello.
How would I update the lambda function using AWS SAM? below is my sam template.yaml file
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: CD Demo Lambda
Resources:
hello:
Type: 'AWS::Serverless::Function'
Properties:
Handler: lambda_function.lambda_handler
Runtime: python3.7
CodeUri: ./s3lambda
FunctionName: hello
MemorySize: 128
Timeout: 03