Creating lambda function using cloudformation stack
This video show you creating lambda function using cloudformation stack.
---------------------------- Template Using code inside cloudformation stack -------------------------------
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "A template is for creating lambda ",
"Resources": {
"LambdaFunResource": {
"Type": "AWS::Lambda::Function",
"Properties": {
"FunctionName": "SurajLambdaCFT",
"Code": {
"ZipFile": {
"Fn::Join": [
"\n",
[
"def lambda_handler(event, context):",
" print('THIS IS LAMBDA CREATED FROM CloudFormation')",
" return 'success'"
]
]
}
},
"Description": "Used to run job",
"Handler": "index.lambda_handler",
"Role": "arn:aws:iam::13015229333333455024:role/lambda_basic_execution",
"Runtime": "python3.6",
"Timeout": 120
}
}
}
}
------------------- Template Using code (your lambda python code file) stored S3 Bucket ---------------------
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "A template is for creating lambda from s3 buckets",
"Resources": {
"LambdaFunResource": {
"Type": "AWS::Lambda::Function",
"Properties": {
"FunctionName": "SurajLambdaCFT",
"Code": {
"S3Bucket" : "surajyt",
"S3Key" : "index.zip"
},
"Description": "Used to run job",
"Handler": "index.lambda_handler",
"Role": "arn:aws:iam::13015229333333455024:role/lambda_basic_execution",
"Runtime": "python3.6",
"Timeout": 120
}
}
}
}
Видео Creating lambda function using cloudformation stack канала Easy-Way To Learn
---------------------------- Template Using code inside cloudformation stack -------------------------------
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "A template is for creating lambda ",
"Resources": {
"LambdaFunResource": {
"Type": "AWS::Lambda::Function",
"Properties": {
"FunctionName": "SurajLambdaCFT",
"Code": {
"ZipFile": {
"Fn::Join": [
"\n",
[
"def lambda_handler(event, context):",
" print('THIS IS LAMBDA CREATED FROM CloudFormation')",
" return 'success'"
]
]
}
},
"Description": "Used to run job",
"Handler": "index.lambda_handler",
"Role": "arn:aws:iam::13015229333333455024:role/lambda_basic_execution",
"Runtime": "python3.6",
"Timeout": 120
}
}
}
}
------------------- Template Using code (your lambda python code file) stored S3 Bucket ---------------------
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "A template is for creating lambda from s3 buckets",
"Resources": {
"LambdaFunResource": {
"Type": "AWS::Lambda::Function",
"Properties": {
"FunctionName": "SurajLambdaCFT",
"Code": {
"S3Bucket" : "surajyt",
"S3Key" : "index.zip"
},
"Description": "Used to run job",
"Handler": "index.lambda_handler",
"Role": "arn:aws:iam::13015229333333455024:role/lambda_basic_execution",
"Runtime": "python3.6",
"Timeout": 120
}
}
}
}
Видео Creating lambda function using cloudformation stack канала Easy-Way To Learn
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![AWS Cloudformation Step by Step Tutorial - Create a DynamoDB Table!](https://i.ytimg.com/vi/YXVCdGyHDSk/default.jpg)
![AWS S3 File Upload + Lambda Trigger (Tutorial In Python) | Step by Step Guide](https://i.ytimg.com/vi/H_rRlnSw_5s/default.jpg)
![AWS Lambda Layers to add Pandas and NumPy libraries](https://i.ytimg.com/vi/lrEAu75zhNI/default.jpg)
![CloudFormation example using EC2, SecurityGroup and S3 | Amazon Web Services | Tech Primers](https://i.ytimg.com/vi/Zz5xljI1gn8/default.jpg)
![Serverless / Lambda Continuous Deployment using AWS CodePipeline & CloudFormation](https://i.ytimg.com/vi/aGI4Wlm5c9U/default.jpg)
![CI/CD from GitHub to AWS Lambda (i.e., automatically update lambda function code) with CodeBuild](https://i.ytimg.com/vi/AmHZxULclLQ/default.jpg)
![What is AWS Cloudformation? Pros and Cons?](https://i.ytimg.com/vi/0Sh9OySCyb4/default.jpg)
![AWS CloudFormation Template Tutorial](https://i.ytimg.com/vi/_jqwVpO1w6A/default.jpg)
![AWS CloudFormation, API Gateway, Lambda & Dynamo DB. Rest API Implementation Ready to use Automation](https://i.ytimg.com/vi/jBD5u80dCQg/default.jpg)
![How to Code Any AWS CloudFormation | Step By Step Coding](https://i.ytimg.com/vi/WlPokWf4VoM/default.jpg)
![Private RDS Instance & AWS Lambda](https://i.ytimg.com/vi/UgWjbSixRg4/default.jpg)
![Developing AWS Lambda Functions Locally in VS Code](https://i.ytimg.com/vi/fEZE3rm8Ma8/default.jpg)
![Part 3: CI/CD Pipeline with AWS CodePipeline, AWS CodeCommit, AWS CodeBuild, and AWS CodeDeploy](https://i.ytimg.com/vi/NCXzTgjUOQo/default.jpg)
![Mastering AWS Organizations with Infrastructure-As-Code](https://i.ytimg.com/vi/mLAGHzidHJ0/default.jpg)
![AWS CloudFormation Tutorial | AWS CloudFormation Demo | AWS Tutorial | AWS Training | Edureka](https://i.ytimg.com/vi/LDSMIvUuFOE/default.jpg)
![AWS Lambda Deployment Package in Python](https://i.ytimg.com/vi/rDbxCeTzw_k/default.jpg)
![CloudFormation - from zero to hero!](https://i.ytimg.com/vi/GP-wknHzPpI/default.jpg)
![Intro to AWS Lambda with Python | AWS Lambda Python Tutorial](https://i.ytimg.com/vi/-8L4OxotXlE/default.jpg)
![ETL From AWS S3 to Amazon Redshift with AWS Lambda dynamically.](https://i.ytimg.com/vi/JyQ9EFFR3n8/default.jpg)
![Optimizing Lambda Performance for Your Serverless Applications - AWS Online Tech Talks](https://i.ytimg.com/vi/FTCaOQJvG6Y/default.jpg)