aws cloudformation creating lamda
First of all we need to run the following scripts to create our lambda function in python/ AWSTemplateFormatVersion : ' 2010-09-09 ' Description : ' AWS Lambda Function with IAM Role and Log Group ' Resources : # 1. IAM Role for Lambda Execution LambdaExecutionRole : Type : AWS::IAM::Role Properties : AssumeRolePolicyDocument : Version : ' 2012-10-17 ' Statement : - Effect : Allow Principal : Service : [ lambda.amazonaws.com ] Action : [ ' sts:AssumeRole ' ] ManagedPolicyArns : - arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole # 2. CloudWatch Log Group (Prevents logs from being kept forever) LambdaLogGroup : ...