In this video, I’ll show you how to create an AWS Lambda Function using AWS CloudFormation step by step.
Instead of manually creating resources from the AWS Console, we will use Infrastructure as Code (IaC) with CloudFormation to provision and manage our Lambda function in a clean, repeatable, and automated way.
🔹 What you’ll learn in this video:
• What is AWS Lambda
• What is AWS CloudFormation
• Why Infrastructure as Code is important
• Writing a basic CloudFormation template (YAML)
• Deploying the template using AWS CLI
• Verifying the Lambda function
• Updating and deleting the stack
This is a beginner-friendly, practical session where you’ll understand how automation works in real-world cloud environments.
💡 This series is helping me become consistent in cloud learning and sharing practical DevOps knowledge every single day.
If you're preparing for Cloud/DevOps roles or learning AWS, this series will definitely help you.
📌 Tools Used:
AWS CLI
AWS CloudFormation
AWS Lambda
YAML
🔔 Follow the journey: 100 Days of Cloud
👍 Like | 💬 Comment | 🔁 Share
📩 Subscribe for daily cloud learning content
#Day48 #100DaysOfCloud #AWS #Lambda #CloudFormation #DevOps #InfrastructureAsCode #AWSCLI #CloudEngineer #TarunValireddy
🤝 Connect with Me on LinkedIn
Let’s grow together in DevOps, Cloud & Automation 🚀
📢 Stay Connected & Learn DevOps Daily!
💬 Feel free to connect, share insights, and collaborate!
🚀 Join our Telegram Community for updates, notes, and discussions:
🎥 Subscribe to my YouTube Channel for DevOps, Cloud & Automation tutorials:
🔔 Don’t forget to Like, Share & Subscribe to support the journey!
CloudFormation Template :
AWSTemplateFormatVersion: '2010-09-09'
Description: XFusion Lambda with IAM Role
Resources:
LambdaExecutionRole:
Type: AWS::IAM::Role
Properties:
RoleName: lambda_execution_role
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
XFusionLambdaFunction:
Type: AWS::Lambda::Function
Properties:
FunctionName: xfusion-lambda
Runtime: python3.9
Handler: index.lambda_handler
Role: !GetAtt LambdaExecutionRole.Arn
Timeout: 5
Code:
ZipFile: |
def lambda_handler(event, context):
return {
"statusCode": 200,
"body": "Welcome to KKE AWS Labs!"
}