One way to utilize Lambda, CodeDeploy, S3 For your continuous development

One way to utilize Lambda, CodeDeploy, S3 For your continuous development

This is a simple Continues deployment process that triggers the deployment on the required environment based on which directory you uploaded to S3 bucket using the following AWS tools: CloudFormation, CodeDeploy, Lambda, SAM, S3. I won’t also put the Slack (SNS, Lambda, Slack configs ) since there will be creating another post for that

Image for post


This is a simple Continues deployment process that triggers the deployment on the required environment based on which directory you uploaded to S3 bucket using the following AWS tools

  • CloudFormation
  • CodeDeploy
  • Lambda, SAM
  • S3

I won’t also put the Slack (SNS, Lambda, Slack configs ) since there will be creating another post for that

Note Also that this is utilizing code deploy so you have to upload the revision following this official documentation


Disclaimer:

  • I have created this implementation for the use under Condor Tech and was published after their permission

Create the AWS CodeDeploy stack:

  • AWS CodeDeploy first block is the application, and every app contains DeploymentGroup (one model is to have each Group to deploy on a specific environment like one for dev, and one for staging….etc)
  • First, create the application
  • Then create the DeploymentGroup

Creating the deployment Lambda:

  • You can choose whatever the way you are comfortable with to create the lambda but in the following example I am using AWS SAM
  • If you used SAM you will have an empty project so here is the template that will create the Lambda, the S3 bucket, and the IAM Role that will be used by the Lambda
  • I am referring to slack SNS in the template which I use it to invoke the other lambda to send the notification to it and then to slack

continuous-delivery codedeploy aws-lambda aws-sam python3 aws

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

How To Unite AWS KMS with Serverless Application Model (SAM)

AWS KMS is a Key Management Service that let you create Cryptographic keys that you can use to encrypt and decrypt data and also other keys. You can read more about it here.

Invoke AWS Lambda with Another Lambda Function with Nodejs

In this article, I will show you how to invoke a lambda function from another lambda function.

Getting Started With AWS SAM

SAM is an open-source framework to build serverless applications on AWS.

New – Use AWS PrivateLink to Access AWS Lambda Over Private AWS Network

AWS Lambda is a serverless computing service that lets you run code without provisioning or managing servers. You simply upload your code and Lambda does all the work to execute and scale your code for high availability.

Developing Lambda Applications using the AWS Serverless Application Model (SAM) Framework

Developing, testing, and deploying Lambda applications using the AWS Serverless Application Model (SAM) framework. Developing Lambda Applications using the AWS Serverless Application Model (SAM) Framework