Need terraform script to Set up lambda connection with RDSa

Hi Eyeryone,

I am stuck in one issue where in I need to set up Lambda connection with RDS database.

Could not find code on terraform official documentation.

Can anyone help on this one.

Image attached

This seems to be “only” a convenience feature that orchestrates the different tasks involved. Since it’s not an API operation, it’s not going to be implemented in the Terraform AWS Provider.

What the feature does under the cover is explained in Automatically connecting a Lambda function and a DB instance and Giving Lambda functions access to resources in an Amazon VPC. You can also check the CloudTrail events after you’ve used the Console feature to observe what exactly it does under the cover.