Skip to main content

Posts

Featured

Code Pipeline Using the AWS CDK for Lambda

In my last post where I have tested my lambda function using AWS SAM locally. Here, I will do the deployment on my lambda application via AWS CDK. I have made some changes for deployment, as I have not used SAM template and added package.json file and had stored my code with the CDK application. I am basically using this example from AWS CDK. https://docs.aws.amazon.com/cdk/latest/guide/codepipeline_example.html   Some prerequisite, on this before beginning ahead. I have installed below mention packages in my directory named lambdapipeline. My project type for CDK is Type Script. If you wanted to know how to get started with typescript with CDK please visit my earlier blog post on Using CDK with Type Script as  a language type, in which I have created a S3 bucket using CDK. Once, I have created my basic step-up for my directory structure by running cdk init --language typescript @aws-cdk/aws-lambda @aws-cdk/aws-codedeploy @aws-cdk/aws-codebuild @aws-cdk/aws-codeco

Latest posts

CDK FARGATE LOAD-BALANCED-SERVICE USING TYPESCRIPT using custom defined VPC

Using CDK for Fargate load-balanced-service using Typescript

AWS Lambda testing locally using SAM

Running a Lambda on a schedule using AWS CDK