How testing-acc-actions/terraform-task works
This repository contains two Terraform infrastructure projects. The documented application workflow invokes a Python Lambda, reads credentials from Secrets Manager, queries Aurora PostgreSQL, and returns the query result. Terraform modules define the networking, database, and Lambda resources; the other project covers VPC, EC2, and ALB infrastructure. The handler was sampled, but Terraform source was not, so infrastructure relationships below rely on README statements rather than inspected Terraform calls; the EC2/ALB project has only high-level documentation.
Main entry points: handler.py Lambda handler · networking/main.tf Networking module · aurora-lambda/main.tf Aurora project root · main.tf VPC EC2 ALB project
Components 16
Lambda application
- Lambda handler
aurora-lambda/lambda/src/handler.py - Secrets Manager
- JSON response
aurora-lambda/lambda/src/handler.py - Lambda module
aurora-lambda/modules/lambda/main.tf - Lambda IAM role
aurora-lambda/modules/lambda/main.tf
Aurora infrastructure
- Aurora PostgreSQL
aurora-lambda/modules/aurora/main.tf - Aurora project root
aurora-lambda/main.tf
Networking
- Networking module
aurora-lambda/modules/networking/main.tf - Private VPC network
aurora-lambda/modules/networking/main.tf - Security groups
aurora-lambda/modules/networking/main.tf - Secrets endpoint
aurora-lambda/modules/networking/main.tf
VPC EC2 ALB
- VPC EC2 ALB project
main.tf - VPC networking
modules/VPC/Vpc.tf - EC2 compute
modules/EC2/Ec2_Instance.tf - Application load balancer
modules/ALB/alb.tf
Other components
- Lambda invoker
Connections 14
- Lambda invoker → Lambda handler: invokes
README.md - Lambda handler → Secrets Manager: retrieves credentials
aurora-lambda/lambda/src/handler.py - Lambda handler → Aurora PostgreSQL: queries
aurora-lambda/lambda/src/handler.py - Lambda handler → JSON response: returns
aurora-lambda/lambda/src/handler.py - Aurora project root → Networking module: configures
README.md - Aurora project root → Lambda module: configures
README.md - Aurora project root → Aurora PostgreSQL: configures
README.md - Networking module → Private VPC network: creates
README.md - Networking module → Security groups: configures
README.md - Networking module → Secrets endpoint: creates
README.md - Lambda module → Lambda IAM role: creates
README.md - VPC EC2 ALB project → VPC networking: configures
- VPC EC2 ALB project → EC2 compute: configures
- VPC EC2 ALB project → Application load balancer: configures