⚙️ Create & delete AWS RDS databases via email commands with Terraform

542 views · ⚙️ DevOps & CI/CD

Description

This automated n8n workflow enables the creation and management of AWS RDS databases through email interactions. Users can send emails with commands such as “Create RDS” or “Delete RDS,” including details like database engine, instance class, and credentials. The workflow parses the email, uses Terraform to execute the requested action on AWS RDS, updates a Google Sheet with the status, and sends a confirmation email.

Fundamental Aspects

Setup Instructions

Columns For The Google Sheet:

  1. Database Identifier: Unique identifier for the RDS instance (e.g., var.db_identifier).
  2. Engine: Database engine type (e.g., MySQL, PostgreSQL) (e.g., var.db_engine).
  3. Instance Class: RDS instance class (e.g., var.instance_class) (e.g., db.t3.micro).
  4. Allocated Storage: Storage size in GB (e.g., var.allocated_storage) (e.g., 20).
  5. Region: AWS region for the instance (e.g., var.aws_region) (e.g., us-east-1).
  6. Username: Database admin username (e.g., var.db_username) (e.g., admin).
  7. Password: Database admin password (e.g., var.db_password) (e.g., SecurePassword123).
  8. Status: Current status of the RDS instance (e.g., creating, deleted).
  9. Database Name: Name or tag for the database (e.g., var.db_name) (e.g., MyRDSDatabase).

Technical Dependencies

Customization Possibilities

Want a tailored workflow for your business? Our experts can craft it quickly Contact our team

🔗 Nodes Used

Google Sheets, Gmail, SSH

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup