Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serverless best practice - LambdaInsideVpc #392

Open
dhoulker opened this issue Sep 21, 2022 · 0 comments
Open

Serverless best practice - LambdaInsideVpc #392

dhoulker opened this issue Sep 21, 2022 · 0 comments

Comments

@dhoulker
Copy link

Hello,

We've recently started using this:

https://github.com/awslabs/aws-config-rules/blob/master/aws-config-conformance-packs/Operational-Best-Practices-for-Serverless.yaml

It's really helped us improve our serverless stack, but we also have a question.

As we understand it, Lambda functions run in a VPC by default, the VPC owned by the Lambda service.

So adding Lambdas to a VPC is not a Lambda security requirement

There are only a couple reasons you'd want to add the extra complexity of running a Lambda in your own VPC:

  • You need to integrate with other private resources inside a VPC, eg ElasticCache or RDS.
  • You have elevated compliance requirements, for example PCI DSS

If the above is correct, why is LambdaInsideVpc in the Operational Best Practices for Serverless ruleset?

Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant