Viewing posts for the category Serverless

Github Actions To deploy angular site to AWS cloudfront & S3

Prerequisites Github Secrets:

  • AWS_ACCESS_KEY_ID   :   AWS IAM user access having S3 and cloudfront permissions

Please Follow Below in sequence (click below "read more" to read full article):

Create AWS Lambda Layers for python using Zappa

Here are quick steps to create Lambda Layer of python packages. (click below "read more" to read full article):

AWS Lambda in VPC having access to AWS resources as well as internet with IGW , Internet Gateway , NAT and Route Tables

If Your lambda function didn't required to call third party services like firebase or payment gateways etc, you can configure it to use default aws vpc which don't have internet access.

But If you required to have internet access as well in VPC , you need to set up NAT (network address translation gateway) , IGW ( internet gateway) , Route Tables with their subnets as attachments.

Note : Some of these services are chargeable .

Here is step by step guide to setup lambda for second case.

We going to have total 3 Subnets. 2 Private subnet and 1 public subnet.

In Lambda Function > Configuration > VPC > Subnets  we going to have only two private subnets selected. public subnet won't be selected here. 

1) Lets say your default vpc has private ip address as or create new one.

2) Create Private Subnets :
    Go to AWS VPC > Subnets > Create two private subnets with CIDR as and