aws-cloudformation-lambda

Featured

Provides AWS CloudFormation patterns for Lambda functions, layers, API Gateway integration, event sources, cold start optimization, monitoring, logging, template validation, and deployment workflows. Use when creating Lambda functions with CloudFormation, configuring event sources, implementing cold start optimization, managing layers, integrating with API Gateway, and deploying Lambda infrastructure.

DevOps & Infrastructure 330 stars 39 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
84
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# AWS CloudFormation Lambda Functions ## Overview Create production-ready Lambda functions using CloudFormation templates with validation and deployment workflows. ## When to Use - Creating Lambda functions with CloudFormation - Configuring event sources (S3, SQS, DynamoDB, Kinesis) - Implementing Lambda layers and cold start optimization - Integrating Lambda with API Gateway - Deploying Lambda infrastructure with validation ## Deployment Workflow Always follow this deployment workflow: ### 1. Validate Template ```bash aws cloudformation validate-template --template-body file://template.yaml ``` ### 2. Deploy Stack ```bash aws cloudformation deploy \ --template-file template.yaml \ --stack-name my-lambda-stack \ --capabilities CAPABILITY_IAM \ --parameter-overrides Environment=prod ``` ### 3. Monitor Stack Events ```bash aws cloudformation describe-stack-events \ --stack-name my-lambda-stack \ --query 'StackEvents[?ResourceStatus==`CREATE_FAILED`||ResourceStatus==`UPDATE_FAILED`]' ``` ### 4. Verify Resources ```bash aws lambda get-function --function-name my-lambda-stack-function aws cloudformation describe-stacks --stack-name my-lambda-stack \ --query 'Stacks[0].StackStatus' ``` ### 5. Rollback on Failure ```bash aws cloudformation delete-stack --stack-name my-lambda-stack aws logs describe-log-groups --log-group-name-prefix "/aws/lambda/my-lambda" ``` ## Instructions Follow these steps to create Lambda functions with CloudFormation: ### 1. Define...

Details

Author
giuseppe-trisciuoglio
Repository
giuseppe-trisciuoglio/developer-kit
Created
10 months ago
Last Updated
2 days ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category