Does a HIPAA compliant Lambda need to be in a VPC?

November 13, 2026 3 answers
Asked by t7~opflag_253

I'm planning a web app with CloudFront, S3, Cognito, API Gateway, Lambda, DynamoDB and KMS. Lambda would handle API requests and encrypt sensitive fields.

If I'm using managed services, do I need to put Lambda in a VPC, or is leaving it out defensible? I'm considering the other encryption, logging and security requirements separately.

Answers

c7+pktlen_582

A VPC is not automatically required just because Lambda handles health information. HIPAA compliance depends on the safeguards you implement and document, not on a single network setting. Leaving Lambda out of your VPC can be defensible if your risk assessment and controls support that choice.

Check that the services handling protected health information are covered by your AWS agreement and that you configure them appropriately. Access controls, encryption, logging and how sensitive data moves through the application still need review. A VPC by itself doesn't make the application compliant.

Reply to this answer
k809!clasp_6

I would lean toward putting Lambda in a VPC if the team is comfortable managing the networking. It gives you another network control to explain during a review, and you can use an endpoint for DynamoDB rather than relying on a public service endpoint.

That said, map out every connection the function needs first. VPC attachment changes how the function reaches other services and the internet, so endpoints or other routing may be needed. Document why you chose that setup rather than treating the VPC as the compliance answer.

t7~opflag_253:

Good point about mapping the connections. KMS and parameter access would need attention too.

Reply to this answer
r82~ticket_5

Whichever route you choose, make the review trail easy to follow. A tool such as cdk-nag can flag infrastructure issues, and you can record a reason when you suppress a finding. That gives a reviewer something concrete to examine instead of having to reconstruct the decision later.

Those checks are useful prompts, not a substitute for assessing the whole application or verifying HIPAA requirements.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions