<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/savueaz37" -->

---
title: How to Provision Production Databases for Kubernetes...
description: A practical guide to using the zopdev/opentofu-modules sql/ module to provision production-ready databases (PostgreSQL and MySQL) across AWS RDS, GCP Cloud...
canonical: https://daily.dev/posts/savueaz37
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to Provision Production Databases for Kubernetes Across AWS, GCP, and Azure with One OpenTofu Module | daily.dev
og:description: A practical guide to using the zopdev/opentofu-modules sql/ module to provision production-ready databases (PostgreSQL and MySQL) across AWS RDS, GCP Cloud...
og:url: https://daily.dev/posts/savueaz37
og:image: https://api.daily.dev/og/posts/savUeAZ37.png
og:image:alt: Post cover image
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Provision Production Databases for Kubernetes Across AWS, GCP, and Azure with One OpenTofu Module

**[Piyush Singh](https://daily.dev/sources/cao6rhpppic4nuc17rdwg)** · [@piyushsingh5](https://daily.dev/piyushsingh5) · 0 upvotes · 0 comments

## Summary

A practical guide to using the zopdev/opentofu-modules sql/ module to provision production-ready databases (PostgreSQL and MySQL) across AWS RDS, GCP Cloud SQL, and Azure Database from a single consistent interface. The module handles ~50 resources across three clouds automatically, enforcing security defaults like encryption at rest, no public accessibility, cloud secret manager integration, CloudWatch/Cloud Logging, parameter group tuning, read replicas, storage auto-scaling, and Kubernetes ExternalName service discovery. Includes HCL examples for AWS and GCP, a comparison with Kubernetes operators, and guidance on when to use each approach.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/@piyush7x3/how-to-provision-production-databases-for-kubernetes-across-aws-gcp-and-azure-with-opentofu-0f16e66ce5f4>

## Similar posts on daily.dev

- [Provision Oracle Database@AWS resources using Terraform](https://daily.dev/posts/provision-oracle-database-aws-resources-using-terraform-ckl784ztt) · AWS Database Blog · 0 upvotes · 0 comments
- [From OpenTofu to Argo CD: GitLab as your AWS control plane](https://daily.dev/posts/from-opentofu-to-argo-cd-gitlab-as-your-aws-control-plane-onnlhavdf) · GitLab · 3 upvotes · 0 comments
- [How to Migrate From Terraform to OpenTofu](https://daily.dev/posts/how-to-migrate-from-terraform-to-opentofu-xqekayb66) · Spacelift · 3 upvotes · 0 comments
- [Running OpenBao on Kubernetes with a CloudNativePG PostgreSQL backend](https://daily.dev/posts/running-openbao-on-kubernetes-with-a-cloudnativepg-postgresql-backend-y9jzjlzm1) · CNCF · 1 upvotes · 0 comments
- [Bringing databases and Kubernetes together](https://daily.dev/posts/bringing-databases-and-kubernetes-together-vfronjrbz) · InfoWorld · 25 upvotes · 1 comments

---

Tags: [#kubernetes](https://daily.dev/tags/kubernetes), [#backend](https://daily.dev/tags/backend), [#iac](https://daily.dev/tags/iac), [#multi-cloud](https://daily.dev/tags/multi-cloud), [#opentofu](https://daily.dev/tags/opentofu)

[View this post on daily.dev](https://daily.dev/posts/savueaz37)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/savueaz37","headline":"How to Provision Production Databases for Kubernetes Across AWS, GCP, and Azure with One OpenTofu Module","text":"Shared: How to Provision Production Databases for Kubernetes Across AWS, GCP, and Azure with One OpenTofu Module","url":"https://daily.dev/posts/savueaz37","datePublished":"2026-03-30T12:14:33.913Z","dateModified":"2026-03-30T12:15:48.885Z","author":{"@type":"Person","name":"Piyush Singh","url":"https://daily.dev/piyushsingh5","image":"https://lh3.googleusercontent.com/a/ACg8ocJgWGnR6pbuZDr90WW8yteOOX4cFab9mIILvnocatkovcE0L9-v=s96-c","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":40}},"image":"https://media.daily.dev/image/upload/s--OHB84bZF--/f_auto/v1722860399/public/Placeholder%2010","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"sharedContent":{"@type":"WebPage","url":"https://api.daily.dev/r/2DDBonsKL"},"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/cao6rhpppic4nuc17rdwg","name":"Piyush Singh"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Piyush Singh","item":"https://daily.dev/sources/cao6rhpppic4nuc17rdwg"},{"@type":"ListItem","position":3,"name":"How to Provision Production Databases for Kubernetes Across AWS, GCP, and Azure with One OpenTofu Module"}]}
```

