Home icon

Connecting .NET Lambda to Amazon Aurora PostgreSQL via RDS Proxy

Database Blog



This article demonstrates how to connect .NET Lambda functions to Aurora PostgreSQL using RDS Proxy for connection pooling and AWS Secrets Manager for credential management.

  • RDS Proxy handles serverless scaling patterns and reduces database connection overhead
  • AWS Secrets Manager stores and manages database credentials securely
  • CloudFormation template provisions VPC, Aurora PostgreSQL, RDS Proxy, and supporting resources
  • Uses Npgsql open-source .NET data provider for PostgreSQL connectivity
  • Implements AWS Secrets Manager client-side caching to improve performance and reduce latency
  • Step-by-step deployment using .NET Lambda CLI tools on Windows EC2 instance
  • Lambda function configured with VPC subnets and security groups for database access
  • Includes testing procedures using AWS CLI and CloudWatch logs for verification

This architecture simplifies SQL Server to PostgreSQL migrations by abstracting connection complexity while providing improved performance, reliability, and cost-efficiency for serverless applications.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

May 12
2026
Migrating Amazon RDS for PostgreSQL to Amazon Aurora using seeded logical replication
Mar 25
2026
Amazon Aurora PostgreSQL now available with the AWS Free Tier
Apr 2
2025
Amazon RDS Proxy announces TLS 1.3 support for PostgreSQL on Aurora and RDS
Jun 4
2025
Migrate Google Cloud SQL for PostgreSQL to Amazon RDS and Amazon Aurora using pglogical

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.