Serverless Posts

Running AWS Lambda Functions in a VPC and Accessing RDS

  • by Emre Yilmaz
  • Oct 23, 2017
  • AWS, Serverless, Databases
Running AWS Lambda in VPC and Accessing RDS

AWS Lambda allows us running code without maintaining servers and paying only for the resources allocated during the code run. In most cases, we do not need to run our Lambda function in a VPC and it is recommended not to run in a VPC in these situations as a best practice. Some of examples to these are sending emails using Amazon SES or accessing a DynamoDB table.

However, to access an RDS database in your Lambda function you have to run your function in the same VPC or in a VPC that has a peering connection to the VPC of your RDS instance. In this blog post I would like to discuss about running AWS Lambda functions in a VPC and accessing a RDS MySQL database. ... read more

AWS CloudFormation Step by Step: Beginner to Intermediate

Would you like to start learning AWS CloudFormation? Check out my course on Udemy!

  • ✔️ Start as a beginner and learn how to create stacks and write your own templates with YAML.
  • ✔️ Learn CloudFormation basics in detail with AWS best practices.
  • ✔️ Achieve an intermediate level where you use CloudFormation daily to automate the creation of your AWS resources.

Click the link below to buy this course for only $12.99 for a limited time. Alternatively, you can use JUNE2020 coupon code during the checkout.

Join now on Udemy!

* The price on Udemy may change slightly depending on your country and your local currency.

RSS

Subscribe to this blog's RSS feed

Categories